Skip to content

Commit

Permalink
Codegen: CrmObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
alzheltkovskiy-hubspot committed Mar 4, 2024
1 parent 80fb48e commit 83c9bd2
Show file tree
Hide file tree
Showing 219 changed files with 11,520 additions and 10,807 deletions.
3 changes: 2 additions & 1 deletion hubspot/crm/imports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa

"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down Expand Up @@ -38,6 +38,7 @@
from hubspot.crm.imports.models.error_detail import ErrorDetail
from hubspot.crm.imports.models.forward_paging import ForwardPaging
from hubspot.crm.imports.models.import_row_core import ImportRowCore
from hubspot.crm.imports.models.import_template import ImportTemplate
from hubspot.crm.imports.models.next_page import NextPage
from hubspot.crm.imports.models.paging import Paging
from hubspot.crm.imports.models.previous_page import PreviousPage
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/imports/api/core_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/imports/api/public_imports_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/imports/api_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/imports/configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/imports/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion hubspot/crm/imports/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# flake8: noqa
"""
CRM Imports
Imports
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Expand All @@ -21,6 +21,7 @@
from hubspot.crm.imports.models.error_detail import ErrorDetail
from hubspot.crm.imports.models.forward_paging import ForwardPaging
from hubspot.crm.imports.models.import_row_core import ImportRowCore
from hubspot.crm.imports.models.import_template import ImportTemplate
from hubspot.crm.imports.models.next_page import NextPage
from hubspot.crm.imports.models.paging import Paging
from hubspot.crm.imports.models.previous_page import PreviousPage
Expand Down
94 changes: 47 additions & 47 deletions hubspot/crm/imports/models/action_response.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

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

attribute_map = {"status": "status", "requested_at": "requestedAt", "started_at": "startedAt", "completed_at": "completedAt", "links": "links"}
attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "status": "status"}

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

self._status = None
self._completed_at = None
self._requested_at = None
self._started_at = None
self._completed_at = None
self._links = None
self._status = None
self.discriminator = None

self.status = status
self.completed_at = completed_at
if requested_at is not None:
self.requested_at = requested_at
self.started_at = started_at
self.completed_at = completed_at
if links is not None:
self.links = links
self.status = status

@property
def status(self):
"""Gets the status of this ActionResponse. # noqa: E501
def completed_at(self):
"""Gets the completed_at of this ActionResponse. # noqa: E501
:return: The status of this ActionResponse. # noqa: E501
:rtype: str
:return: The completed_at of this ActionResponse. # noqa: E501
:rtype: datetime
"""
return self._status
return self._completed_at

@status.setter
def status(self, status):
"""Sets the status of this ActionResponse.
@completed_at.setter
def completed_at(self, completed_at):
"""Sets the completed_at of this ActionResponse.
:param status: The status of this ActionResponse. # noqa: E501
:type status: str
:param completed_at: The completed_at of this ActionResponse. # noqa: E501
:type completed_at: datetime
"""
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501
if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501
raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501

self._status = status
self._completed_at = completed_at

@property
def requested_at(self):
Expand Down Expand Up @@ -130,29 +127,6 @@ def started_at(self, started_at):

self._started_at = started_at

@property
def completed_at(self):
"""Gets the completed_at of this ActionResponse. # noqa: E501
:return: The completed_at of this ActionResponse. # noqa: E501
:rtype: datetime
"""
return self._completed_at

@completed_at.setter
def completed_at(self, completed_at):
"""Sets the completed_at of this ActionResponse.
:param completed_at: The completed_at of this ActionResponse. # noqa: E501
:type completed_at: datetime
"""
if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501
raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501

self._completed_at = completed_at

@property
def links(self):
"""Gets the links of this ActionResponse. # noqa: E501
Expand All @@ -174,6 +148,32 @@ def links(self, links):

self._links = links

@property
def status(self):
"""Gets the status of this ActionResponse. # noqa: E501
:return: The status of this ActionResponse. # noqa: E501
:rtype: str
"""
return self._status

@status.setter
def status(self, status):
"""Sets the status of this ActionResponse.
:param status: The status of this ActionResponse. # noqa: E501
:type status: str
"""
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501

self._status = status

def to_dict(self, serialize=False):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

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

attribute_map = {"results": "results", "paging": "paging"}
attribute_map = {"paging": "paging", "results": "results"}

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

self._results = None
self._paging = None
self._results = None
self.discriminator = None

self.results = results
if paging is not None:
self.paging = paging
self.results = results

@property
def paging(self):
"""Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:rtype: ForwardPaging
"""
return self._paging

@paging.setter
def paging(self, paging):
"""Sets the paging of this CollectionResponsePublicImportErrorForwardPaging.
:param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:type paging: ForwardPaging
"""

self._paging = paging

@property
def results(self):
Expand All @@ -76,27 +97,6 @@ def results(self, results):

self._results = results

@property
def paging(self):
"""Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:rtype: ForwardPaging
"""
return self._paging

@paging.setter
def paging(self, paging):
"""Sets the paging of this CollectionResponsePublicImportErrorForwardPaging.
:param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501
:type paging: ForwardPaging
"""

self._paging = paging

def to_dict(self, serialize=False):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Loading

0 comments on commit 83c9bd2

Please sign in to comment.