Skip to content

Commit 83c9bd2

Browse files
Codegen: CrmObjects
1 parent 80fb48e commit 83c9bd2

File tree

219 files changed

+11520
-10807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+11520
-10807
lines changed

hubspot/crm/imports/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# flake8: noqa
44

55
"""
6-
CRM Imports
6+
Imports
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
99
@@ -38,6 +38,7 @@
3838
from hubspot.crm.imports.models.error_detail import ErrorDetail
3939
from hubspot.crm.imports.models.forward_paging import ForwardPaging
4040
from hubspot.crm.imports.models.import_row_core import ImportRowCore
41+
from hubspot.crm.imports.models.import_template import ImportTemplate
4142
from hubspot.crm.imports.models.next_page import NextPage
4243
from hubspot.crm.imports.models.paging import Paging
4344
from hubspot.crm.imports.models.previous_page import PreviousPage

hubspot/crm/imports/api/core_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

hubspot/crm/imports/api/public_imports_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

hubspot/crm/imports/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
22
"""
3-
CRM Imports
3+
Imports
44
55
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
66

hubspot/crm/imports/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

hubspot/crm/imports/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

hubspot/crm/imports/models/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# flake8: noqa
44
"""
5-
CRM Imports
5+
Imports
66
77
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
88
@@ -21,6 +21,7 @@
2121
from hubspot.crm.imports.models.error_detail import ErrorDetail
2222
from hubspot.crm.imports.models.forward_paging import ForwardPaging
2323
from hubspot.crm.imports.models.import_row_core import ImportRowCore
24+
from hubspot.crm.imports.models.import_template import ImportTemplate
2425
from hubspot.crm.imports.models.next_page import NextPage
2526
from hubspot.crm.imports.models.paging import Paging
2627
from hubspot.crm.imports.models.previous_page import PreviousPage

hubspot/crm/imports/models/action_response.py

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
@@ -35,56 +35,53 @@ class ActionResponse(object):
3535
attribute_map (dict): The key is attribute name
3636
and the value is json key in definition.
3737
"""
38-
openapi_types = {"status": "str", "requested_at": "datetime", "started_at": "datetime", "completed_at": "datetime", "links": "dict[str, str]"}
38+
openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "status": "str"}
3939

40-
attribute_map = {"status": "status", "requested_at": "requestedAt", "started_at": "startedAt", "completed_at": "completedAt", "links": "links"}
40+
attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "status": "status"}
4141

42-
def __init__(self, status=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501
42+
def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, status=None, local_vars_configuration=None): # noqa: E501
4343
"""ActionResponse - a model defined in OpenAPI""" # noqa: E501
4444
if local_vars_configuration is None:
4545
local_vars_configuration = Configuration.get_default_copy()
4646
self.local_vars_configuration = local_vars_configuration
4747

48-
self._status = None
48+
self._completed_at = None
4949
self._requested_at = None
5050
self._started_at = None
51-
self._completed_at = None
5251
self._links = None
52+
self._status = None
5353
self.discriminator = None
5454

55-
self.status = status
55+
self.completed_at = completed_at
5656
if requested_at is not None:
5757
self.requested_at = requested_at
5858
self.started_at = started_at
59-
self.completed_at = completed_at
6059
if links is not None:
6160
self.links = links
61+
self.status = status
6262

6363
@property
64-
def status(self):
65-
"""Gets the status of this ActionResponse. # noqa: E501
64+
def completed_at(self):
65+
"""Gets the completed_at of this ActionResponse. # noqa: E501
6666
6767
68-
:return: The status of this ActionResponse. # noqa: E501
69-
:rtype: str
68+
:return: The completed_at of this ActionResponse. # noqa: E501
69+
:rtype: datetime
7070
"""
71-
return self._status
71+
return self._completed_at
7272

73-
@status.setter
74-
def status(self, status):
75-
"""Sets the status of this ActionResponse.
73+
@completed_at.setter
74+
def completed_at(self, completed_at):
75+
"""Sets the completed_at of this ActionResponse.
7676
7777
78-
:param status: The status of this ActionResponse. # noqa: E501
79-
:type status: str
78+
:param completed_at: The completed_at of this ActionResponse. # noqa: E501
79+
:type completed_at: datetime
8080
"""
81-
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
82-
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
83-
allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501
84-
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
85-
raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501
81+
if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501
82+
raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501
8683

87-
self._status = status
84+
self._completed_at = completed_at
8885

8986
@property
9087
def requested_at(self):
@@ -130,29 +127,6 @@ def started_at(self, started_at):
130127

131128
self._started_at = started_at
132129

133-
@property
134-
def completed_at(self):
135-
"""Gets the completed_at of this ActionResponse. # noqa: E501
136-
137-
138-
:return: The completed_at of this ActionResponse. # noqa: E501
139-
:rtype: datetime
140-
"""
141-
return self._completed_at
142-
143-
@completed_at.setter
144-
def completed_at(self, completed_at):
145-
"""Sets the completed_at of this ActionResponse.
146-
147-
148-
:param completed_at: The completed_at of this ActionResponse. # noqa: E501
149-
:type completed_at: datetime
150-
"""
151-
if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501
152-
raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501
153-
154-
self._completed_at = completed_at
155-
156130
@property
157131
def links(self):
158132
"""Gets the links of this ActionResponse. # noqa: E501
@@ -174,6 +148,32 @@ def links(self, links):
174148

175149
self._links = links
176150

151+
@property
152+
def status(self):
153+
"""Gets the status of this ActionResponse. # noqa: E501
154+
155+
156+
:return: The status of this ActionResponse. # noqa: E501
157+
:rtype: str
158+
"""
159+
return self._status
160+
161+
@status.setter
162+
def status(self, status):
163+
"""Sets the status of this ActionResponse.
164+
165+
166+
:param status: The status of this ActionResponse. # noqa: E501
167+
:type status: str
168+
"""
169+
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
170+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
171+
allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501
172+
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
173+
raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501
174+
175+
self._status = status
176+
177177
def to_dict(self, serialize=False):
178178
"""Returns the model properties as a dict"""
179179
result = {}

hubspot/crm/imports/models/collection_response_public_import_error_forward_paging.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
CRM Imports
4+
Imports
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77
@@ -35,23 +35,44 @@ class CollectionResponsePublicImportErrorForwardPaging(object):
3535
attribute_map (dict): The key is attribute name
3636
and the value is json key in definition.
3737
"""
38-
openapi_types = {"results": "list[PublicImportError]", "paging": "ForwardPaging"}
38+
openapi_types = {"paging": "ForwardPaging", "results": "list[PublicImportError]"}
3939

40-
attribute_map = {"results": "results", "paging": "paging"}
40+
attribute_map = {"paging": "paging", "results": "results"}
4141

42-
def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501
42+
def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501
4343
"""CollectionResponsePublicImportErrorForwardPaging - a model defined in OpenAPI""" # noqa: E501
4444
if local_vars_configuration is None:
4545
local_vars_configuration = Configuration.get_default_copy()
4646
self.local_vars_configuration = local_vars_configuration
4747

48-
self._results = None
4948
self._paging = None
49+
self._results = None
5050
self.discriminator = None
5151

52-
self.results = results
5352
if paging is not None:
5453
self.paging = paging
54+
self.results = results
55+
56+
@property
57+
def paging(self):
58+
"""Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
59+
60+
61+
:return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
62+
:rtype: ForwardPaging
63+
"""
64+
return self._paging
65+
66+
@paging.setter
67+
def paging(self, paging):
68+
"""Sets the paging of this CollectionResponsePublicImportErrorForwardPaging.
69+
70+
71+
:param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
72+
:type paging: ForwardPaging
73+
"""
74+
75+
self._paging = paging
5576

5677
@property
5778
def results(self):
@@ -76,27 +97,6 @@ def results(self, results):
7697

7798
self._results = results
7899

79-
@property
80-
def paging(self):
81-
"""Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
82-
83-
84-
:return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
85-
:rtype: ForwardPaging
86-
"""
87-
return self._paging
88-
89-
@paging.setter
90-
def paging(self, paging):
91-
"""Sets the paging of this CollectionResponsePublicImportErrorForwardPaging.
92-
93-
94-
:param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
95-
:type paging: ForwardPaging
96-
"""
97-
98-
self._paging = paging
99-
100100
def to_dict(self, serialize=False):
101101
"""Returns the model properties as a dict"""
102102
result = {}

0 commit comments

Comments
 (0)