Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hubspot/files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down Expand Up @@ -43,6 +43,7 @@
from hubspot.files.models.folder_action_response import FolderActionResponse
from hubspot.files.models.folder_input import FolderInput
from hubspot.files.models.folder_update_input import FolderUpdateInput
from hubspot.files.models.folder_update_input_with_id import FolderUpdateInputWithId
from hubspot.files.models.folder_update_task_locator import FolderUpdateTaskLocator
from hubspot.files.models.import_from_url_input import ImportFromUrlInput
from hubspot.files.models.import_from_url_task_locator import ImportFromUrlTaskLocator
Expand Down
334 changes: 211 additions & 123 deletions hubspot/files/api/files_api.py

Large diffs are not rendered by default.

289 changes: 222 additions & 67 deletions hubspot/files/api/folders_api.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hubspot/files/api_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
3 changes: 2 additions & 1 deletion hubspot/files/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# flake8: noqa
"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand All @@ -26,6 +26,7 @@
from hubspot.files.models.folder_action_response import FolderActionResponse
from hubspot.files.models.folder_input import FolderInput
from hubspot.files.models.folder_update_input import FolderUpdateInput
from hubspot.files.models.folder_update_input_with_id import FolderUpdateInputWithId
from hubspot.files.models.folder_update_task_locator import FolderUpdateTaskLocator
from hubspot.files.models.import_from_url_input import ImportFromUrlInput
from hubspot.files.models.import_from_url_task_locator import ImportFromUrlTaskLocator
Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/collection_response_file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/collection_response_folder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/error.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/error_detail.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
114 changes: 84 additions & 30 deletions hubspot/files/models/file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down Expand Up @@ -39,15 +39,17 @@ class File(object):
"extension": "str",
"access": "str",
"parent_folder_id": "str",
"source_group": "str",
"file_md5": "str",
"encoding": "str",
"type": "str",
"is_usable_in_content": "bool",
"url": "str",
"expires_at": "int",
"created_at": "datetime",
"archived_at": "datetime",
"archived": "bool",
"path": "str",
"archived": "bool",
"size": "int",
"name": "str",
"width": "int",
Expand All @@ -61,15 +63,17 @@ class File(object):
"extension": "extension",
"access": "access",
"parent_folder_id": "parentFolderId",
"source_group": "sourceGroup",
"file_md5": "fileMd5",
"encoding": "encoding",
"type": "type",
"is_usable_in_content": "isUsableInContent",
"url": "url",
"expires_at": "expiresAt",
"created_at": "createdAt",
"archived_at": "archivedAt",
"archived": "archived",
"path": "path",
"archived": "archived",
"size": "size",
"name": "name",
"width": "width",
Expand All @@ -84,15 +88,17 @@ def __init__(
extension=None,
access=None,
parent_folder_id=None,
source_group=None,
file_md5=None,
encoding=None,
type=None,
is_usable_in_content=None,
url=None,
expires_at=None,
created_at=None,
archived_at=None,
archived=None,
path=None,
archived=None,
size=None,
name=None,
width=None,
Expand All @@ -110,15 +116,17 @@ def __init__(
self._extension = None
self._access = None
self._parent_folder_id = None
self._source_group = None
self._file_md5 = None
self._encoding = None
self._type = None
self._is_usable_in_content = None
self._url = None
self._expires_at = None
self._created_at = None
self._archived_at = None
self._archived = None
self._path = None
self._archived = None
self._size = None
self._name = None
self._width = None
Expand All @@ -133,6 +141,10 @@ def __init__(
self.access = access
if parent_folder_id is not None:
self.parent_folder_id = parent_folder_id
if source_group is not None:
self.source_group = source_group
if file_md5 is not None:
self.file_md5 = file_md5
if encoding is not None:
self.encoding = encoding
if type is not None:
Expand All @@ -146,9 +158,9 @@ def __init__(
self.created_at = created_at
if archived_at is not None:
self.archived_at = archived_at
self.archived = archived
if path is not None:
self.path = path
self.archived = archived
if size is not None:
self.size = size
if name is not None:
Expand Down Expand Up @@ -207,7 +219,7 @@ def access(self, access):
"""
if self.local_vars_configuration.client_side_validation and access is None: # noqa: E501
raise ValueError("Invalid value for `access`, must not be `None`") # noqa: E501
allowed_values = ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"] # noqa: E501
allowed_values = ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE", "HIDDEN_SENSITIVE", "SENSITIVE"] # noqa: E501
if self.local_vars_configuration.client_side_validation and access not in allowed_values: # noqa: E501
raise ValueError("Invalid value for `access` ({0}), must be one of {1}".format(access, allowed_values)) # noqa: E501

Expand Down Expand Up @@ -236,6 +248,48 @@ def parent_folder_id(self, parent_folder_id):

self._parent_folder_id = parent_folder_id

@property
def source_group(self):
"""Gets the source_group of this File. # noqa: E501


:return: The source_group of this File. # noqa: E501
:rtype: str
"""
return self._source_group

@source_group.setter
def source_group(self, source_group):
"""Sets the source_group of this File.


:param source_group: The source_group of this File. # noqa: E501
:type source_group: str
"""

self._source_group = source_group

@property
def file_md5(self):
"""Gets the file_md5 of this File. # noqa: E501


:return: The file_md5 of this File. # noqa: E501
:rtype: str
"""
return self._file_md5

@file_md5.setter
def file_md5(self, file_md5):
"""Sets the file_md5 of this File.


:param file_md5: The file_md5 of this File. # noqa: E501
:type file_md5: str
"""

self._file_md5 = file_md5

@property
def encoding(self):
"""Gets the encoding of this File. # noqa: E501
Expand Down Expand Up @@ -397,6 +451,29 @@ def archived_at(self, archived_at):

self._archived_at = archived_at

@property
def path(self):
"""Gets the path of this File. # noqa: E501

Path of the file in the file manager. # noqa: E501

:return: The path of this File. # noqa: E501
:rtype: str
"""
return self._path

@path.setter
def path(self, path):
"""Sets the path of this File.

Path of the file in the file manager. # noqa: E501

:param path: The path of this File. # noqa: E501
:type path: str
"""

self._path = path

@property
def archived(self):
"""Gets the archived of this File. # noqa: E501
Expand All @@ -422,29 +499,6 @@ def archived(self, archived):

self._archived = archived

@property
def path(self):
"""Gets the path of this File. # noqa: E501

Path of the file in the file manager. # noqa: E501

:return: The path of this File. # noqa: E501
:rtype: str
"""
return self._path

@path.setter
def path(self, path):
"""Sets the path of this File.

Path of the file in the file manager. # noqa: E501

:param path: The path of this File. # noqa: E501
:type path: str
"""

self._path = path

@property
def size(self):
"""Gets the size of this File. # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/file_action_response.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion hubspot/files/models/file_stat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
Files Files
Files

Upload and manage files. # noqa: E501

Expand Down
Loading