From fb69e5d7ae0e0edc6fd5ef037ee436c8e95d8ef7 Mon Sep 17 00:00:00 2001 From: alexey Date: Thu, 22 Jan 2026 12:59:23 +0300 Subject: [PATCH] Codegen: CRM LineItems --- hubspot/crm/line_items/__init__.py | 9 +- hubspot/crm/line_items/api/basic_api.py | 20 +- hubspot/crm/line_items/api/batch_api.py | 14 +- hubspot/crm/line_items/api/search_api.py | 16 +- hubspot/crm/line_items/api_client.py | 2 +- hubspot/crm/line_items/configuration.py | 2 +- hubspot/crm/line_items/exceptions.py | 2 +- hubspot/crm/line_items/models/__init__.py | 9 +- .../crm/line_items/models/associated_id.py | 6 +- .../crm/line_items/models/association_spec.py | 8 +- ..._input_simple_public_object_batch_input.py | 2 +- ...le_public_object_batch_input_for_create.py | 2 +- ...simple_public_object_batch_input_upsert.py | 2 +- .../batch_input_simple_public_object_id.py | 2 +- ...atch_read_input_simple_public_object_id.py | 62 ++-- .../batch_response_simple_public_object.py | 170 +++++++--- ...sponse_simple_public_object_with_errors.py | 314 ------------------ ...ch_response_simple_public_upsert_object.py | 170 +++++++--- ...simple_public_upsert_object_with_errors.py | 314 ------------------ .../collection_response_associated_id.py | 2 +- ...simple_public_object_with_associations.py} | 32 +- ...sponse_with_total_simple_public_object.py} | 88 ++--- hubspot/crm/line_items/models/error.py | 122 +++---- hubspot/crm/line_items/models/error_detail.py | 112 +++---- hubspot/crm/line_items/models/filter.py | 104 +++--- hubspot/crm/line_items/models/filter_group.py | 2 +- .../crm/line_items/models/forward_paging.py | 121 ------- hubspot/crm/line_items/models/next_page.py | 58 ++-- hubspot/crm/line_items/models/paging.py | 2 +- .../crm/line_items/models/previous_page.py | 6 +- .../models/public_associations_for_object.py | 58 ++-- .../crm/line_items/models/public_object_id.py | 4 +- .../models/public_object_search_request.py | 168 +++++----- .../line_items/models/simple_public_object.py | 111 ++++--- .../simple_public_object_batch_input.py | 66 ++-- ...le_public_object_batch_input_for_create.py | 6 +- ...simple_public_object_batch_input_upsert.py | 64 ++-- .../models/simple_public_object_id.py | 4 +- .../models/simple_public_object_input.py | 4 +- .../simple_public_object_input_for_create.py | 4 +- .../simple_public_object_with_associations.py | 167 +++++----- .../models/simple_public_upsert_object.py | 171 +++++----- .../crm/line_items/models/standard_error.py | 168 +++++----- .../line_items/models/value_with_timestamp.py | 96 +++--- hubspot/crm/line_items/rest.py | 2 +- 45 files changed, 1212 insertions(+), 1656 deletions(-) delete mode 100644 hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py delete mode 100644 hubspot/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.py rename hubspot/crm/line_items/models/{collection_response_simple_public_object_with_associations_forward_paging.py => collection_response_simple_public_object_with_associations.py} (67%) rename hubspot/crm/line_items/models/{collection_response_with_total_simple_public_object_forward_paging.py => collection_response_with_total_simple_public_object.py} (67%) delete mode 100644 hubspot/crm/line_items/models/forward_paging.py diff --git a/hubspot/crm/line_items/__init__.py b/hubspot/crm/line_items/__init__.py index 1ff397b9..0b3f1300 100644 --- a/hubspot/crm/line_items/__init__.py +++ b/hubspot/crm/line_items/__init__.py @@ -5,7 +5,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -40,17 +40,14 @@ from hubspot.crm.line_items.models.batch_input_simple_public_object_id import BatchInputSimplePublicObjectId from hubspot.crm.line_items.models.batch_read_input_simple_public_object_id import BatchReadInputSimplePublicObjectId from hubspot.crm.line_items.models.batch_response_simple_public_object import BatchResponseSimplePublicObject -from hubspot.crm.line_items.models.batch_response_simple_public_object_with_errors import BatchResponseSimplePublicObjectWithErrors from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object import BatchResponseSimplePublicUpsertObject -from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object_with_errors import BatchResponseSimplePublicUpsertObjectWithErrors from hubspot.crm.line_items.models.collection_response_associated_id import CollectionResponseAssociatedId -from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations_forward_paging import CollectionResponseSimplePublicObjectWithAssociationsForwardPaging -from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object_forward_paging import CollectionResponseWithTotalSimplePublicObjectForwardPaging +from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations import CollectionResponseSimplePublicObjectWithAssociations +from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object import CollectionResponseWithTotalSimplePublicObject from hubspot.crm.line_items.models.error import Error from hubspot.crm.line_items.models.error_detail import ErrorDetail from hubspot.crm.line_items.models.filter import Filter from hubspot.crm.line_items.models.filter_group import FilterGroup -from hubspot.crm.line_items.models.forward_paging import ForwardPaging from hubspot.crm.line_items.models.next_page import NextPage from hubspot.crm.line_items.models.paging import Paging from hubspot.crm.line_items.models.previous_page import PreviousPage diff --git a/hubspot/crm/line_items/api/basic_api.py b/hubspot/crm/line_items/api/basic_api.py index 84b4ec1f..bbca4266 100644 --- a/hubspot/crm/line_items/api/basic_api.py +++ b/hubspot/crm/line_items/api/basic_api.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -113,6 +113,8 @@ def archive_with_http_info(self, line_item_id, **kwargs): # noqa: E501 if self.api_client.client_side_validation and local_var_params.get("line_item_id") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `line_item_id` when calling `archive`") # noqa: E501 + if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `line_item_id` when calling `archive`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} @@ -260,7 +262,7 @@ def create_with_http_info(self, simple_public_object_input_for_create, **kwargs) auth_settings = ["oauth2"] # noqa: E501 response_types_map = { - 201: "SimplePublicObject", + 200: "SimplePublicObject", } return self.api_client.call_api( @@ -382,6 +384,8 @@ def get_by_id_with_http_info(self, line_item_id, **kwargs): # noqa: E501 if self.api_client.client_side_validation and local_var_params.get("line_item_id") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `line_item_id` when calling `get_by_id`") # noqa: E501 + if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `line_item_id` when calling `get_by_id`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} @@ -454,7 +458,7 @@ def get_page(self, **kwargs): # noqa: E501 :type after: str :param properties: A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. :type properties: list[str] - :param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. + :param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of line items that can be read by a single request. :type properties_with_history: list[str] :param associations: A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. :type associations: list[str] @@ -473,7 +477,7 @@ def get_page(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: CollectionResponseSimplePublicObjectWithAssociationsForwardPaging + :rtype: CollectionResponseSimplePublicObjectWithAssociations """ kwargs["_return_http_data_only"] = True return self.get_page_with_http_info(**kwargs) # noqa: E501 @@ -494,7 +498,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501 :type after: str :param properties: A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. :type properties: list[str] - :param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. + :param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of line items that can be read by a single request. :type properties_with_history: list[str] :param associations: A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. :type associations: list[str] @@ -521,7 +525,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(CollectionResponseSimplePublicObjectWithAssociations, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -569,7 +573,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ["oauth2"] # noqa: E501 response_types_map = { - 200: "CollectionResponseSimplePublicObjectWithAssociationsForwardPaging", + 200: "CollectionResponseSimplePublicObjectWithAssociations", } return self.api_client.call_api( @@ -682,6 +686,8 @@ def update_with_http_info(self, line_item_id, simple_public_object_input, **kwar if self.api_client.client_side_validation and local_var_params.get("simple_public_object_input") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `simple_public_object_input` when calling `update`") # noqa: E501 + if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `line_item_id` when calling `update`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/hubspot/crm/line_items/api/batch_api.py b/hubspot/crm/line_items/api/batch_api.py index 83ef9393..ae6df9d7 100644 --- a/hubspot/crm/line_items/api/batch_api.py +++ b/hubspot/crm/line_items/api/batch_api.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,6 +36,7 @@ def __init__(self, api_client=None): def archive(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501 """Archive a batch of line items by ID # noqa: E501 + Archive multiple line items simultaneously by specifying their IDs in the request body. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -65,6 +66,7 @@ def archive(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501 def archive_with_http_info(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501 """Archive a batch of line items by ID # noqa: E501 + Archive multiple line items simultaneously by specifying their IDs in the request body. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -160,6 +162,7 @@ def archive_with_http_info(self, batch_input_simple_public_object_id, **kwargs): def create(self, batch_input_simple_public_object_batch_input_for_create, **kwargs): # noqa: E501 """Create a batch of line items # noqa: E501 + Create multiple line items in a single request by providing the necessary properties and associations for each item. This endpoint allows for efficient batch processing of line items, returning the created objects with their unique identifiers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -189,6 +192,7 @@ def create(self, batch_input_simple_public_object_batch_input_for_create, **kwar def create_with_http_info(self, batch_input_simple_public_object_batch_input_for_create, **kwargs): # noqa: E501 """Create a batch of line items # noqa: E501 + Create multiple line items in a single request by providing the necessary properties and associations for each item. This endpoint allows for efficient batch processing of line items, returning the created objects with their unique identifiers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -261,8 +265,7 @@ def create_with_http_info(self, batch_input_simple_public_object_batch_input_for auth_settings = ["oauth2"] # noqa: E501 response_types_map = { - 201: "BatchResponseSimplePublicObject", - 207: "BatchResponseSimplePublicObjectWithErrors", + 200: "BatchResponseSimplePublicObject", } return self.api_client.call_api( @@ -397,7 +400,6 @@ def read_with_http_info(self, batch_read_input_simple_public_object_id, **kwargs response_types_map = { 200: "BatchResponseSimplePublicObject", - 207: "BatchResponseSimplePublicObjectWithErrors", } return self.api_client.call_api( @@ -422,6 +424,7 @@ def read_with_http_info(self, batch_read_input_simple_public_object_id, **kwargs def update(self, batch_input_simple_public_object_batch_input, **kwargs): # noqa: E501 """Update a batch of line items by internal ID, or unique property values # noqa: E501 + Update multiple line items using their internal IDs or unique property values. This endpoint allows for batch processing of updates, ensuring efficient modification of line item records in bulk. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -451,6 +454,7 @@ def update(self, batch_input_simple_public_object_batch_input, **kwargs): # noq def update_with_http_info(self, batch_input_simple_public_object_batch_input, **kwargs): # noqa: E501 """Update a batch of line items by internal ID, or unique property values # noqa: E501 + Update multiple line items using their internal IDs or unique property values. This endpoint allows for batch processing of updates, ensuring efficient modification of line item records in bulk. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -524,7 +528,6 @@ def update_with_http_info(self, batch_input_simple_public_object_batch_input, ** response_types_map = { 200: "BatchResponseSimplePublicObject", - 207: "BatchResponseSimplePublicObjectWithErrors", } return self.api_client.call_api( @@ -653,7 +656,6 @@ def upsert_with_http_info(self, batch_input_simple_public_object_batch_input_ups response_types_map = { 200: "BatchResponseSimplePublicUpsertObject", - 207: "BatchResponseSimplePublicUpsertObjectWithErrors", } return self.api_client.call_api( diff --git a/hubspot/crm/line_items/api/search_api.py b/hubspot/crm/line_items/api/search_api.py index 14a58aa4..ff814103 100644 --- a/hubspot/crm/line_items/api/search_api.py +++ b/hubspot/crm/line_items/api/search_api.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -34,9 +34,9 @@ def __init__(self, api_client=None): self.api_client = api_client def do_search(self, public_object_search_request, **kwargs): # noqa: E501 - """Search for line items # noqa: E501 + """Search for line items using specified criteria. # noqa: E501 - Search for line items by filtering on properties, searching through associations, and sorting results. Learn more about [CRM search](https://developers.hubspot.com/docs/guides/api/crm/search#make-a-search-request). # noqa: E501 + Execute a search for line items based on filters, properties, and sorting options provided in the request body. This endpoint allows you to retrieve line items that match specific conditions, facilitating targeted data retrieval in CRM operations. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -58,15 +58,15 @@ def do_search(self, public_object_search_request, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: CollectionResponseWithTotalSimplePublicObjectForwardPaging + :rtype: CollectionResponseWithTotalSimplePublicObject """ kwargs["_return_http_data_only"] = True return self.do_search_with_http_info(public_object_search_request, **kwargs) # noqa: E501 def do_search_with_http_info(self, public_object_search_request, **kwargs): # noqa: E501 - """Search for line items # noqa: E501 + """Search for line items using specified criteria. # noqa: E501 - Search for line items by filtering on properties, searching through associations, and sorting results. Learn more about [CRM search](https://developers.hubspot.com/docs/guides/api/crm/search#make-a-search-request). # noqa: E501 + Execute a search for line items based on filters, properties, and sorting options provided in the request body. This endpoint allows you to retrieve line items that match specific conditions, facilitating targeted data retrieval in CRM operations. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -96,7 +96,7 @@ def do_search_with_http_info(self, public_object_search_request, **kwargs): # n :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(CollectionResponseWithTotalSimplePublicObjectForwardPaging, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(CollectionResponseWithTotalSimplePublicObject, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -139,7 +139,7 @@ def do_search_with_http_info(self, public_object_search_request, **kwargs): # n auth_settings = ["oauth2"] # noqa: E501 response_types_map = { - 200: "CollectionResponseWithTotalSimplePublicObjectForwardPaging", + 200: "CollectionResponseWithTotalSimplePublicObject", } return self.api_client.call_api( diff --git a/hubspot/crm/line_items/api_client.py b/hubspot/crm/line_items/api_client.py index bbed9c83..4e28bb17 100644 --- a/hubspot/crm/line_items/api_client.py +++ b/hubspot/crm/line_items/api_client.py @@ -2,7 +2,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/configuration.py b/hubspot/crm/line_items/configuration.py index 236413e0..9334b0ef 100644 --- a/hubspot/crm/line_items/configuration.py +++ b/hubspot/crm/line_items/configuration.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/exceptions.py b/hubspot/crm/line_items/exceptions.py index d0479b49..a7484596 100644 --- a/hubspot/crm/line_items/exceptions.py +++ b/hubspot/crm/line_items/exceptions.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/__init__.py b/hubspot/crm/line_items/models/__init__.py index c809e626..ef433651 100644 --- a/hubspot/crm/line_items/models/__init__.py +++ b/hubspot/crm/line_items/models/__init__.py @@ -4,7 +4,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -22,17 +22,14 @@ from hubspot.crm.line_items.models.batch_input_simple_public_object_id import BatchInputSimplePublicObjectId from hubspot.crm.line_items.models.batch_read_input_simple_public_object_id import BatchReadInputSimplePublicObjectId from hubspot.crm.line_items.models.batch_response_simple_public_object import BatchResponseSimplePublicObject -from hubspot.crm.line_items.models.batch_response_simple_public_object_with_errors import BatchResponseSimplePublicObjectWithErrors from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object import BatchResponseSimplePublicUpsertObject -from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object_with_errors import BatchResponseSimplePublicUpsertObjectWithErrors from hubspot.crm.line_items.models.collection_response_associated_id import CollectionResponseAssociatedId -from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations_forward_paging import CollectionResponseSimplePublicObjectWithAssociationsForwardPaging -from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object_forward_paging import CollectionResponseWithTotalSimplePublicObjectForwardPaging +from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations import CollectionResponseSimplePublicObjectWithAssociations +from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object import CollectionResponseWithTotalSimplePublicObject from hubspot.crm.line_items.models.error import Error from hubspot.crm.line_items.models.error_detail import ErrorDetail from hubspot.crm.line_items.models.filter import Filter from hubspot.crm.line_items.models.filter_group import FilterGroup -from hubspot.crm.line_items.models.forward_paging import ForwardPaging from hubspot.crm.line_items.models.next_page import NextPage from hubspot.crm.line_items.models.paging import Paging from hubspot.crm.line_items.models.previous_page import PreviousPage diff --git a/hubspot/crm/line_items/models/associated_id.py b/hubspot/crm/line_items/models/associated_id.py index f3775e05..786f84c2 100644 --- a/hubspot/crm/line_items/models/associated_id.py +++ b/hubspot/crm/line_items/models/associated_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -56,6 +56,7 @@ def __init__(self, id=None, type=None, local_vars_configuration=None): # noqa: def id(self): """Gets the id of this AssociatedId. # noqa: E501 + The ID for the association type. # noqa: E501 :return: The id of this AssociatedId. # noqa: E501 :rtype: str @@ -66,6 +67,7 @@ def id(self): def id(self, id): """Sets the id of this AssociatedId. + The ID for the association type. # noqa: E501 :param id: The id of this AssociatedId. # noqa: E501 :type id: str @@ -79,6 +81,7 @@ def id(self, id): def type(self): """Gets the type of this AssociatedId. # noqa: E501 + The type of association. # noqa: E501 :return: The type of this AssociatedId. # noqa: E501 :rtype: str @@ -89,6 +92,7 @@ def type(self): def type(self, type): """Sets the type of this AssociatedId. + The type of association. # noqa: E501 :param type: The type of this AssociatedId. # noqa: E501 :type type: str diff --git a/hubspot/crm/line_items/models/association_spec.py b/hubspot/crm/line_items/models/association_spec.py index 91d63966..8bba1940 100644 --- a/hubspot/crm/line_items/models/association_spec.py +++ b/hubspot/crm/line_items/models/association_spec.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -56,6 +56,7 @@ def __init__(self, association_category=None, association_type_id=None, local_va def association_category(self): """Gets the association_category of this AssociationSpec. # noqa: E501 + The category of the association, such as \"HUBSPOT_DEFINED\". # noqa: E501 :return: The association_category of this AssociationSpec. # noqa: E501 :rtype: str @@ -66,13 +67,14 @@ def association_category(self): def association_category(self, association_category): """Sets the association_category of this AssociationSpec. + The category of the association, such as \"HUBSPOT_DEFINED\". # noqa: E501 :param association_category: The association_category of this AssociationSpec. # noqa: E501 :type association_category: str """ if self.local_vars_configuration.client_side_validation and association_category is None: # noqa: E501 raise ValueError("Invalid value for `association_category`, must not be `None`") # noqa: E501 - allowed_values = ["HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED"] # noqa: E501 + allowed_values = ["HUBSPOT_DEFINED", "INTEGRATOR_DEFINED", "USER_DEFINED"] # noqa: E501 if self.local_vars_configuration.client_side_validation and association_category not in allowed_values: # noqa: E501 raise ValueError("Invalid value for `association_category` ({0}), must be one of {1}".format(association_category, allowed_values)) # noqa: E501 @@ -82,6 +84,7 @@ def association_category(self, association_category): def association_type_id(self): """Gets the association_type_id of this AssociationSpec. # noqa: E501 + The ID representing the specific type of association. # noqa: E501 :return: The association_type_id of this AssociationSpec. # noqa: E501 :rtype: int @@ -92,6 +95,7 @@ def association_type_id(self): def association_type_id(self, association_type_id): """Sets the association_type_id of this AssociationSpec. + The ID representing the specific type of association. # noqa: E501 :param association_type_id: The association_type_id of this AssociationSpec. # noqa: E501 :type association_type_id: int diff --git a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input.py b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input.py index 6634b1ea..96f8ca05 100644 --- a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input.py +++ b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_for_create.py b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_for_create.py index be474915..607bfb2e 100644 --- a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_for_create.py +++ b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_for_create.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_upsert.py b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_upsert.py index ec2f6247..c96c2e5d 100644 --- a/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_upsert.py +++ b/hubspot/crm/line_items/models/batch_input_simple_public_object_batch_input_upsert.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/batch_input_simple_public_object_id.py b/hubspot/crm/line_items/models/batch_input_simple_public_object_id.py index 42c9a27e..aed012d1 100644 --- a/hubspot/crm/line_items/models/batch_input_simple_public_object_id.py +++ b/hubspot/crm/line_items/models/batch_input_simple_public_object_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py b/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py index e5c75f0e..f02493d9 100644 --- a/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py +++ b/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,50 +35,27 @@ class BatchReadInputSimplePublicObjectId(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"properties_with_history": "list[str]", "id_property": "str", "inputs": "list[SimplePublicObjectId]", "properties": "list[str]"} + openapi_types = {"id_property": "str", "inputs": "list[SimplePublicObjectId]", "properties": "list[str]", "properties_with_history": "list[str]"} - attribute_map = {"properties_with_history": "propertiesWithHistory", "id_property": "idProperty", "inputs": "inputs", "properties": "properties"} + attribute_map = {"id_property": "idProperty", "inputs": "inputs", "properties": "properties", "properties_with_history": "propertiesWithHistory"} - def __init__(self, properties_with_history=None, id_property=None, inputs=None, properties=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id_property=None, inputs=None, properties=None, properties_with_history=None, local_vars_configuration=None): # noqa: E501 """BatchReadInputSimplePublicObjectId - 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._properties_with_history = None self._id_property = None self._inputs = None self._properties = None + self._properties_with_history = None self.discriminator = None - self.properties_with_history = properties_with_history if id_property is not None: self.id_property = id_property self.inputs = inputs self.properties = properties - - @property - def properties_with_history(self): - """Gets the properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 - - - :return: The properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 - :rtype: list[str] - """ - return self._properties_with_history - - @properties_with_history.setter - def properties_with_history(self, properties_with_history): - """Sets the properties_with_history of this BatchReadInputSimplePublicObjectId. - - - :param properties_with_history: The properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 - :type properties_with_history: list[str] - """ - if self.local_vars_configuration.client_side_validation and properties_with_history is None: # noqa: E501 - raise ValueError("Invalid value for `properties_with_history`, must not be `None`") # noqa: E501 - - self._properties_with_history = properties_with_history + self.properties_with_history = properties_with_history @property def id_property(self): @@ -130,6 +107,7 @@ def inputs(self, inputs): def properties(self): """Gets the properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 + Key-value pairs for setting properties for the new object. # noqa: E501 :return: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 :rtype: list[str] @@ -140,6 +118,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this BatchReadInputSimplePublicObjectId. + Key-value pairs for setting properties for the new object. # noqa: E501 :param properties: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 :type properties: list[str] @@ -149,6 +128,31 @@ def properties(self, properties): self._properties = properties + @property + def properties_with_history(self): + """Gets the properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 + + Key-value pairs for setting properties for the new object and their histories. # noqa: E501 + + :return: The properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 + :rtype: list[str] + """ + return self._properties_with_history + + @properties_with_history.setter + def properties_with_history(self, properties_with_history): + """Sets the properties_with_history of this BatchReadInputSimplePublicObjectId. + + Key-value pairs for setting properties for the new object and their histories. # noqa: E501 + + :param properties_with_history: The properties_with_history of this BatchReadInputSimplePublicObjectId. # noqa: E501 + :type properties_with_history: list[str] + """ + if self.local_vars_configuration.client_side_validation and properties_with_history is None: # noqa: E501 + raise ValueError("Invalid value for `properties_with_history`, must not be `None`") # noqa: E501 + + self._properties_with_history = properties_with_history + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_object.py b/hubspot/crm/line_items/models/batch_response_simple_public_object.py index ae48badc..6e4991ec 100644 --- a/hubspot/crm/line_items/models/batch_response_simple_public_object.py +++ b/hubspot/crm/line_items/models/batch_response_simple_public_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,37 +35,62 @@ class BatchResponseSimplePublicObject(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "results": "list[SimplePublicObject]", "status": "str"} - - attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "results": "results", "status": "status"} - - def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, results=None, status=None, local_vars_configuration=None): # noqa: E501 + openapi_types = { + "completed_at": "datetime", + "errors": "list[StandardError]", + "links": "dict[str, str]", + "num_errors": "int", + "requested_at": "datetime", + "results": "list[SimplePublicObject]", + "started_at": "datetime", + "status": "str", + } + + attribute_map = { + "completed_at": "completedAt", + "errors": "errors", + "links": "links", + "num_errors": "numErrors", + "requested_at": "requestedAt", + "results": "results", + "started_at": "startedAt", + "status": "status", + } + + def __init__(self, completed_at=None, errors=None, links=None, num_errors=None, requested_at=None, results=None, started_at=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponseSimplePublicObject - 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._completed_at = None - self._requested_at = None - self._started_at = None + self._errors = None self._links = None + self._num_errors = None + self._requested_at = None self._results = None + self._started_at = None self._status = None self.discriminator = None self.completed_at = completed_at - if requested_at is not None: - self.requested_at = requested_at - self.started_at = started_at + if errors is not None: + self.errors = errors if links is not None: self.links = links + if num_errors is not None: + self.num_errors = num_errors + if requested_at is not None: + self.requested_at = requested_at self.results = results + self.started_at = started_at self.status = status @property def completed_at(self): """Gets the completed_at of this BatchResponseSimplePublicObject. # noqa: E501 + The timestamp when the batch processing was completed, in ISO 8601 format. # noqa: E501 :return: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 :rtype: datetime @@ -76,6 +101,7 @@ def completed_at(self): def completed_at(self, completed_at): """Sets the completed_at of this BatchResponseSimplePublicObject. + The timestamp when the batch processing was completed, in ISO 8601 format. # noqa: E501 :param completed_at: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 :type completed_at: datetime @@ -86,53 +112,31 @@ def completed_at(self, completed_at): self._completed_at = completed_at @property - def requested_at(self): - """Gets the requested_at of this BatchResponseSimplePublicObject. # noqa: E501 - - - :return: The requested_at of this BatchResponseSimplePublicObject. # noqa: E501 - :rtype: datetime - """ - return self._requested_at - - @requested_at.setter - def requested_at(self, requested_at): - """Sets the requested_at of this BatchResponseSimplePublicObject. - - - :param requested_at: The requested_at of this BatchResponseSimplePublicObject. # noqa: E501 - :type requested_at: datetime - """ - - self._requested_at = requested_at - - @property - def started_at(self): - """Gets the started_at of this BatchResponseSimplePublicObject. # noqa: E501 + def errors(self): + """Gets the errors of this BatchResponseSimplePublicObject. # noqa: E501 - :return: The started_at of this BatchResponseSimplePublicObject. # noqa: E501 - :rtype: datetime + :return: The errors of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: list[StandardError] """ - return self._started_at + return self._errors - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this BatchResponseSimplePublicObject. + @errors.setter + def errors(self, errors): + """Sets the errors of this BatchResponseSimplePublicObject. - :param started_at: The started_at of this BatchResponseSimplePublicObject. # noqa: E501 - :type started_at: datetime + :param errors: The errors of this BatchResponseSimplePublicObject. # noqa: E501 + :type errors: list[StandardError] """ - if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 - raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 - self._started_at = started_at + self._errors = errors @property def links(self): """Gets the links of this BatchResponseSimplePublicObject. # noqa: E501 + An object containing relevant links related to the batch request. # noqa: E501 :return: The links of this BatchResponseSimplePublicObject. # noqa: E501 :rtype: dict[str, str] @@ -143,6 +147,7 @@ def links(self): def links(self, links): """Sets the links of this BatchResponseSimplePublicObject. + An object containing relevant links related to the batch request. # noqa: E501 :param links: The links of this BatchResponseSimplePublicObject. # noqa: E501 :type links: dict[str, str] @@ -150,6 +155,52 @@ def links(self, links): self._links = links + @property + def num_errors(self): + """Gets the num_errors of this BatchResponseSimplePublicObject. # noqa: E501 + + The total number of errors that occurred during the batch operation. # noqa: E501 + + :return: The num_errors of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: int + """ + return self._num_errors + + @num_errors.setter + def num_errors(self, num_errors): + """Sets the num_errors of this BatchResponseSimplePublicObject. + + The total number of errors that occurred during the batch operation. # noqa: E501 + + :param num_errors: The num_errors of this BatchResponseSimplePublicObject. # noqa: E501 + :type num_errors: int + """ + + self._num_errors = num_errors + + @property + def requested_at(self): + """Gets the requested_at of this BatchResponseSimplePublicObject. # noqa: E501 + + The timestamp when the batch request was initially made, in ISO 8601 format. # noqa: E501 + + :return: The requested_at of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: datetime + """ + return self._requested_at + + @requested_at.setter + def requested_at(self, requested_at): + """Sets the requested_at of this BatchResponseSimplePublicObject. + + The timestamp when the batch request was initially made, in ISO 8601 format. # noqa: E501 + + :param requested_at: The requested_at of this BatchResponseSimplePublicObject. # noqa: E501 + :type requested_at: datetime + """ + + self._requested_at = requested_at + @property def results(self): """Gets the results of this BatchResponseSimplePublicObject. # noqa: E501 @@ -173,10 +224,36 @@ def results(self, results): self._results = results + @property + def started_at(self): + """Gets the started_at of this BatchResponseSimplePublicObject. # noqa: E501 + + The timestamp when the batch processing began, in ISO 8601 format. # noqa: E501 + + :return: The started_at of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this BatchResponseSimplePublicObject. + + The timestamp when the batch processing began, in ISO 8601 format. # noqa: E501 + + :param started_at: The started_at of this BatchResponseSimplePublicObject. # noqa: E501 + :type started_at: datetime + """ + if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 + raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 + + self._started_at = started_at + @property def status(self): """Gets the status of this BatchResponseSimplePublicObject. # noqa: E501 + The status of the batch processing request: \"PENDING\", \"PROCESSING\", \"CANCELLED\", or \"COMPLETE\" # noqa: E501 :return: The status of this BatchResponseSimplePublicObject. # noqa: E501 :rtype: str @@ -187,13 +264,14 @@ def status(self): def status(self, status): """Sets the status of this BatchResponseSimplePublicObject. + The status of the batch processing request: \"PENDING\", \"PROCESSING\", \"CANCELLED\", or \"COMPLETE\" # noqa: E501 :param status: The status of this BatchResponseSimplePublicObject. # 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 + allowed_values = ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"] # 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 diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py b/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py deleted file mode 100644 index bd407cd9..00000000 --- a/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py +++ /dev/null @@ -1,314 +0,0 @@ -# coding: utf-8 - -""" - Line Items - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: v3 - Generated by: https://openapi-generator.tech -""" - - -try: - from inspect import getfullargspec -except ImportError: - from inspect import getargspec as getfullargspec -import pprint -import re # noqa: F401 -import six - -from hubspot.crm.line_items.configuration import Configuration - - -class BatchResponseSimplePublicObjectWithErrors(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - "completed_at": "datetime", - "num_errors": "int", - "requested_at": "datetime", - "started_at": "datetime", - "links": "dict[str, str]", - "results": "list[SimplePublicObject]", - "errors": "list[StandardError]", - "status": "str", - } - - attribute_map = { - "completed_at": "completedAt", - "num_errors": "numErrors", - "requested_at": "requestedAt", - "started_at": "startedAt", - "links": "links", - "results": "results", - "errors": "errors", - "status": "status", - } - - def __init__(self, completed_at=None, num_errors=None, requested_at=None, started_at=None, links=None, results=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 - """BatchResponseSimplePublicObjectWithErrors - 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._completed_at = None - self._num_errors = None - self._requested_at = None - self._started_at = None - self._links = None - self._results = None - self._errors = None - self._status = None - self.discriminator = None - - self.completed_at = completed_at - if num_errors is not None: - self.num_errors = num_errors - if requested_at is not None: - self.requested_at = requested_at - self.started_at = started_at - if links is not None: - self.links = links - self.results = results - if errors is not None: - self.errors = errors - self.status = status - - @property - def completed_at(self): - """Gets the completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponseSimplePublicObjectWithErrors. - - - :param completed_at: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # 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 num_errors(self): - """Gets the num_errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The num_errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: int - """ - return self._num_errors - - @num_errors.setter - def num_errors(self, num_errors): - """Sets the num_errors of this BatchResponseSimplePublicObjectWithErrors. - - - :param num_errors: The num_errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type num_errors: int - """ - - self._num_errors = num_errors - - @property - def requested_at(self): - """Gets the requested_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The requested_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._requested_at - - @requested_at.setter - def requested_at(self, requested_at): - """Sets the requested_at of this BatchResponseSimplePublicObjectWithErrors. - - - :param requested_at: The requested_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type requested_at: datetime - """ - - self._requested_at = requested_at - - @property - def started_at(self): - """Gets the started_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The started_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._started_at - - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this BatchResponseSimplePublicObjectWithErrors. - - - :param started_at: The started_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type started_at: datetime - """ - if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 - raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 - - self._started_at = started_at - - @property - def links(self): - """Gets the links of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The links of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this BatchResponseSimplePublicObjectWithErrors. - - - :param links: The links of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - - @property - def results(self): - """Gets the results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: list[SimplePublicObject] - """ - return self._results - - @results.setter - def results(self, results): - """Sets the results of this BatchResponseSimplePublicObjectWithErrors. - - - :param results: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type results: list[SimplePublicObject] - """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 - - self._results = results - - @property - def errors(self): - """Gets the errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: list[StandardError] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this BatchResponseSimplePublicObjectWithErrors. - - - :param errors: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type errors: list[StandardError] - """ - - self._errors = errors - - @property - def status(self): - """Gets the status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponseSimplePublicObjectWithErrors. - - - :param status: The status of this BatchResponseSimplePublicObjectWithErrors. # 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 = {} - - def convert(x): - if hasattr(x, "to_dict"): - args = getfullargspec(x.to_dict).args - if len(args) == 1: - return x.to_dict() - else: - return x.to_dict(serialize) - else: - return x - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - attr = self.attribute_map.get(attr, attr) if serialize else attr - if isinstance(value, list): - result[attr] = list(map(lambda x: convert(x), value)) - elif isinstance(value, dict): - result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) - else: - result[attr] = convert(value) - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BatchResponseSimplePublicObjectWithErrors): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BatchResponseSimplePublicObjectWithErrors): - return True - - return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object.py b/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object.py index 0cd6138b..07dbe5fc 100644 --- a/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object.py +++ b/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,37 +35,62 @@ class BatchResponseSimplePublicUpsertObject(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "results": "list[SimplePublicUpsertObject]", "status": "str"} - - attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "results": "results", "status": "status"} - - def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, results=None, status=None, local_vars_configuration=None): # noqa: E501 + openapi_types = { + "completed_at": "datetime", + "errors": "list[StandardError]", + "links": "dict[str, str]", + "num_errors": "int", + "requested_at": "datetime", + "results": "list[SimplePublicUpsertObject]", + "started_at": "datetime", + "status": "str", + } + + attribute_map = { + "completed_at": "completedAt", + "errors": "errors", + "links": "links", + "num_errors": "numErrors", + "requested_at": "requestedAt", + "results": "results", + "started_at": "startedAt", + "status": "status", + } + + def __init__(self, completed_at=None, errors=None, links=None, num_errors=None, requested_at=None, results=None, started_at=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponseSimplePublicUpsertObject - 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._completed_at = None - self._requested_at = None - self._started_at = None + self._errors = None self._links = None + self._num_errors = None + self._requested_at = None self._results = None + self._started_at = None self._status = None self.discriminator = None self.completed_at = completed_at - if requested_at is not None: - self.requested_at = requested_at - self.started_at = started_at + if errors is not None: + self.errors = errors if links is not None: self.links = links + if num_errors is not None: + self.num_errors = num_errors + if requested_at is not None: + self.requested_at = requested_at self.results = results + self.started_at = started_at self.status = status @property def completed_at(self): """Gets the completed_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + The timestamp when the batch process was completed, in ISO 8601 format. # noqa: E501 :return: The completed_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 :rtype: datetime @@ -76,6 +101,7 @@ def completed_at(self): def completed_at(self, completed_at): """Sets the completed_at of this BatchResponseSimplePublicUpsertObject. + The timestamp when the batch process was completed, in ISO 8601 format. # noqa: E501 :param completed_at: The completed_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 :type completed_at: datetime @@ -86,53 +112,31 @@ def completed_at(self, completed_at): self._completed_at = completed_at @property - def requested_at(self): - """Gets the requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - - - :return: The requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - :rtype: datetime - """ - return self._requested_at - - @requested_at.setter - def requested_at(self, requested_at): - """Sets the requested_at of this BatchResponseSimplePublicUpsertObject. - - - :param requested_at: The requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - :type requested_at: datetime - """ - - self._requested_at = requested_at - - @property - def started_at(self): - """Gets the started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + def errors(self): + """Gets the errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - :return: The started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - :rtype: datetime + :return: The errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :rtype: list[StandardError] """ - return self._started_at + return self._errors - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this BatchResponseSimplePublicUpsertObject. + @errors.setter + def errors(self, errors): + """Sets the errors of this BatchResponseSimplePublicUpsertObject. - :param started_at: The started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 - :type started_at: datetime + :param errors: The errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :type errors: list[StandardError] """ - if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 - raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 - self._started_at = started_at + self._errors = errors @property def links(self): """Gets the links of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + An object containing relevant links related to the batch request. # noqa: E501 :return: The links of this BatchResponseSimplePublicUpsertObject. # noqa: E501 :rtype: dict[str, str] @@ -143,6 +147,7 @@ def links(self): def links(self, links): """Sets the links of this BatchResponseSimplePublicUpsertObject. + An object containing relevant links related to the batch request. # noqa: E501 :param links: The links of this BatchResponseSimplePublicUpsertObject. # noqa: E501 :type links: dict[str, str] @@ -150,6 +155,52 @@ def links(self, links): self._links = links + @property + def num_errors(self): + """Gets the num_errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + + The total number of errors that occurred during the operation. # noqa: E501 + + :return: The num_errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :rtype: int + """ + return self._num_errors + + @num_errors.setter + def num_errors(self, num_errors): + """Sets the num_errors of this BatchResponseSimplePublicUpsertObject. + + The total number of errors that occurred during the operation. # noqa: E501 + + :param num_errors: The num_errors of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :type num_errors: int + """ + + self._num_errors = num_errors + + @property + def requested_at(self): + """Gets the requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + + The timestamp when the batch process was initiated, in ISO 8601 format. # noqa: E501 + + :return: The requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :rtype: datetime + """ + return self._requested_at + + @requested_at.setter + def requested_at(self, requested_at): + """Sets the requested_at of this BatchResponseSimplePublicUpsertObject. + + The timestamp when the batch process was initiated, in ISO 8601 format. # noqa: E501 + + :param requested_at: The requested_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :type requested_at: datetime + """ + + self._requested_at = requested_at + @property def results(self): """Gets the results of this BatchResponseSimplePublicUpsertObject. # noqa: E501 @@ -173,10 +224,36 @@ def results(self, results): self._results = results + @property + def started_at(self): + """Gets the started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + + The timestamp when the batch process began execution, in ISO 8601 format. # noqa: E501 + + :return: The started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this BatchResponseSimplePublicUpsertObject. + + The timestamp when the batch process began execution, in ISO 8601 format. # noqa: E501 + + :param started_at: The started_at of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + :type started_at: datetime + """ + if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 + raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 + + self._started_at = started_at + @property def status(self): """Gets the status of this BatchResponseSimplePublicUpsertObject. # noqa: E501 + The status of the batch processing request. Can be: \"PENDING\", \"PROCESSING\", \"CANCELED\", or \"COMPLETE\". # noqa: E501 :return: The status of this BatchResponseSimplePublicUpsertObject. # noqa: E501 :rtype: str @@ -187,13 +264,14 @@ def status(self): def status(self, status): """Sets the status of this BatchResponseSimplePublicUpsertObject. + The status of the batch processing request. Can be: \"PENDING\", \"PROCESSING\", \"CANCELED\", or \"COMPLETE\". # noqa: E501 :param status: The status of this BatchResponseSimplePublicUpsertObject. # 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 + allowed_values = ["CANCELED", "COMPLETE", "PENDING", "PROCESSING"] # 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 diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.py b/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.py deleted file mode 100644 index eaa033af..00000000 --- a/hubspot/crm/line_items/models/batch_response_simple_public_upsert_object_with_errors.py +++ /dev/null @@ -1,314 +0,0 @@ -# coding: utf-8 - -""" - Line Items - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: v3 - Generated by: https://openapi-generator.tech -""" - - -try: - from inspect import getfullargspec -except ImportError: - from inspect import getargspec as getfullargspec -import pprint -import re # noqa: F401 -import six - -from hubspot.crm.line_items.configuration import Configuration - - -class BatchResponseSimplePublicUpsertObjectWithErrors(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = { - "completed_at": "datetime", - "num_errors": "int", - "requested_at": "datetime", - "started_at": "datetime", - "links": "dict[str, str]", - "results": "list[SimplePublicUpsertObject]", - "errors": "list[StandardError]", - "status": "str", - } - - attribute_map = { - "completed_at": "completedAt", - "num_errors": "numErrors", - "requested_at": "requestedAt", - "started_at": "startedAt", - "links": "links", - "results": "results", - "errors": "errors", - "status": "status", - } - - def __init__(self, completed_at=None, num_errors=None, requested_at=None, started_at=None, links=None, results=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 - """BatchResponseSimplePublicUpsertObjectWithErrors - 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._completed_at = None - self._num_errors = None - self._requested_at = None - self._started_at = None - self._links = None - self._results = None - self._errors = None - self._status = None - self.discriminator = None - - self.completed_at = completed_at - if num_errors is not None: - self.num_errors = num_errors - if requested_at is not None: - self.requested_at = requested_at - self.started_at = started_at - if links is not None: - self.links = links - self.results = results - if errors is not None: - self.errors = errors - self.status = status - - @property - def completed_at(self): - """Gets the completed_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The completed_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param completed_at: The completed_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # 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 num_errors(self): - """Gets the num_errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The num_errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: int - """ - return self._num_errors - - @num_errors.setter - def num_errors(self, num_errors): - """Sets the num_errors of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param num_errors: The num_errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type num_errors: int - """ - - self._num_errors = num_errors - - @property - def requested_at(self): - """Gets the requested_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The requested_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._requested_at - - @requested_at.setter - def requested_at(self, requested_at): - """Sets the requested_at of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param requested_at: The requested_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type requested_at: datetime - """ - - self._requested_at = requested_at - - @property - def started_at(self): - """Gets the started_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The started_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._started_at - - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param started_at: The started_at of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type started_at: datetime - """ - if self.local_vars_configuration.client_side_validation and started_at is None: # noqa: E501 - raise ValueError("Invalid value for `started_at`, must not be `None`") # noqa: E501 - - self._started_at = started_at - - @property - def links(self): - """Gets the links of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The links of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param links: The links of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - - @property - def results(self): - """Gets the results of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The results of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: list[SimplePublicUpsertObject] - """ - return self._results - - @results.setter - def results(self, results): - """Sets the results of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param results: The results of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type results: list[SimplePublicUpsertObject] - """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 - - self._results = results - - @property - def errors(self): - """Gets the errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: list[StandardError] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param errors: The errors of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :type errors: list[StandardError] - """ - - self._errors = errors - - @property - def status(self): - """Gets the status of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - - - :return: The status of this BatchResponseSimplePublicUpsertObjectWithErrors. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponseSimplePublicUpsertObjectWithErrors. - - - :param status: The status of this BatchResponseSimplePublicUpsertObjectWithErrors. # 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 = {} - - def convert(x): - if hasattr(x, "to_dict"): - args = getfullargspec(x.to_dict).args - if len(args) == 1: - return x.to_dict() - else: - return x.to_dict(serialize) - else: - return x - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - attr = self.attribute_map.get(attr, attr) if serialize else attr - if isinstance(value, list): - result[attr] = list(map(lambda x: convert(x), value)) - elif isinstance(value, dict): - result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) - else: - result[attr] = convert(value) - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BatchResponseSimplePublicUpsertObjectWithErrors): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BatchResponseSimplePublicUpsertObjectWithErrors): - return True - - return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/collection_response_associated_id.py b/hubspot/crm/line_items/models/collection_response_associated_id.py index 5b388ca2..66906ec4 100644 --- a/hubspot/crm/line_items/models/collection_response_associated_id.py +++ b/hubspot/crm/line_items/models/collection_response_associated_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py b/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations.py similarity index 67% rename from hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py rename to hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations.py index 963e9be9..c120aca6 100644 --- a/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py +++ b/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -21,7 +21,7 @@ from hubspot.crm.line_items.configuration import Configuration -class CollectionResponseSimplePublicObjectWithAssociationsForwardPaging(object): +class CollectionResponseSimplePublicObjectWithAssociations(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,12 +35,12 @@ class CollectionResponseSimplePublicObjectWithAssociationsForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"paging": "ForwardPaging", "results": "list[SimplePublicObjectWithAssociations]"} + openapi_types = {"paging": "Paging", "results": "list[SimplePublicObjectWithAssociations]"} attribute_map = {"paging": "paging", "results": "results"} def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 - """CollectionResponseSimplePublicObjectWithAssociationsForwardPaging - a model defined in OpenAPI""" # noqa: E501 + """CollectionResponseSimplePublicObjectWithAssociations - 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 @@ -55,41 +55,41 @@ def __init__(self, paging=None, results=None, local_vars_configuration=None): # @property def paging(self): - """Gets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + """Gets the paging of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 - :return: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 - :rtype: ForwardPaging + :return: The paging of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 + :rtype: Paging """ return self._paging @paging.setter def paging(self, paging): - """Sets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. + """Sets the paging of this CollectionResponseSimplePublicObjectWithAssociations. - :param paging: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 - :type paging: ForwardPaging + :param paging: The paging of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 + :type paging: Paging """ self._paging = paging @property def results(self): - """Gets the results of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + """Gets the results of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 - :return: The results of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + :return: The results of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 :rtype: list[SimplePublicObjectWithAssociations] """ return self._results @results.setter def results(self, results): - """Sets the results of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. + """Sets the results of this CollectionResponseSimplePublicObjectWithAssociations. - :param results: The results of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + :param results: The results of this CollectionResponseSimplePublicObjectWithAssociations. # noqa: E501 :type results: list[SimplePublicObjectWithAssociations] """ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 @@ -133,14 +133,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CollectionResponseSimplePublicObjectWithAssociationsForwardPaging): + if not isinstance(other, CollectionResponseSimplePublicObjectWithAssociations): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, CollectionResponseSimplePublicObjectWithAssociationsForwardPaging): + if not isinstance(other, CollectionResponseSimplePublicObjectWithAssociations): return True return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py b/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object.py similarity index 67% rename from hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py rename to hubspot/crm/line_items/models/collection_response_with_total_simple_public_object.py index b39d254e..759f46fc 100644 --- a/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py +++ b/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -21,7 +21,7 @@ from hubspot.crm.line_items.configuration import Configuration -class CollectionResponseWithTotalSimplePublicObjectForwardPaging(object): +class CollectionResponseWithTotalSimplePublicObject(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,86 +35,63 @@ class CollectionResponseWithTotalSimplePublicObjectForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"total": "int", "paging": "ForwardPaging", "results": "list[SimplePublicObject]"} + openapi_types = {"paging": "Paging", "results": "list[SimplePublicObject]", "total": "int"} - attribute_map = {"total": "total", "paging": "paging", "results": "results"} + attribute_map = {"paging": "paging", "results": "results", "total": "total"} - def __init__(self, total=None, paging=None, results=None, local_vars_configuration=None): # noqa: E501 - """CollectionResponseWithTotalSimplePublicObjectForwardPaging - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, paging=None, results=None, total=None, local_vars_configuration=None): # noqa: E501 + """CollectionResponseWithTotalSimplePublicObject - 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._total = None self._paging = None self._results = None + self._total = None self.discriminator = None - self.total = total if paging is not None: self.paging = paging self.results = results - - @property - def total(self): - """Gets the total of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - - - :return: The total of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. - - - :param total: The total of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :type total: int - """ - if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501 - raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501 - - self._total = total + self.total = total @property def paging(self): - """Gets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + """Gets the paging of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 - :return: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :rtype: ForwardPaging + :return: The paging of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 + :rtype: Paging """ return self._paging @paging.setter def paging(self, paging): - """Sets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. + """Sets the paging of this CollectionResponseWithTotalSimplePublicObject. - :param paging: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :type paging: ForwardPaging + :param paging: The paging of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 + :type paging: Paging """ self._paging = paging @property def results(self): - """Gets the results of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + """Gets the results of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 - :return: The results of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + :return: The results of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 :rtype: list[SimplePublicObject] """ return self._results @results.setter def results(self, results): - """Sets the results of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. + """Sets the results of this CollectionResponseWithTotalSimplePublicObject. - :param results: The results of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + :param results: The results of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 :type results: list[SimplePublicObject] """ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 @@ -122,6 +99,31 @@ def results(self, results): self._results = results + @property + def total(self): + """Gets the total of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 + + The number of available results # noqa: E501 + + :return: The total of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this CollectionResponseWithTotalSimplePublicObject. + + The number of available results # noqa: E501 + + :param total: The total of this CollectionResponseWithTotalSimplePublicObject. # noqa: E501 + :type total: int + """ + if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501 + raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501 + + self._total = total + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} @@ -158,14 +160,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CollectionResponseWithTotalSimplePublicObjectForwardPaging): + if not isinstance(other, CollectionResponseWithTotalSimplePublicObject): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, CollectionResponseWithTotalSimplePublicObjectForwardPaging): + if not isinstance(other, CollectionResponseWithTotalSimplePublicObject): return True return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/error.py b/hubspot/crm/line_items/models/error.py index 85f882f0..55c89c18 100644 --- a/hubspot/crm/line_items/models/error.py +++ b/hubspot/crm/line_items/models/error.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,59 +35,61 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} + openapi_types = {"category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "errors": "list[ErrorDetail]", "links": "dict[str, str]", "message": "str", "sub_category": "str"} - attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} + attribute_map = {"category": "category", "context": "context", "correlation_id": "correlationId", "errors": "errors", "links": "links", "message": "message", "sub_category": "subCategory"} - def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, category=None, context=None, correlation_id=None, errors=None, links=None, message=None, sub_category=None, local_vars_configuration=None): # noqa: E501 """Error - 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._sub_category = None + self._category = None self._context = None self._correlation_id = None + self._errors = None self._links = None self._message = None - self._category = None - self._errors = None + self._sub_category = None self.discriminator = None - if sub_category is not None: - self.sub_category = sub_category + self.category = category if context is not None: self.context = context self.correlation_id = correlation_id + if errors is not None: + self.errors = errors if links is not None: self.links = links self.message = message - self.category = category - if errors is not None: - self.errors = errors + if sub_category is not None: + self.sub_category = sub_category @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 + def category(self): + """Gets the category of this Error. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The error category # noqa: E501 - :return: The sub_category of this Error. # noqa: E501 + :return: The category of this Error. # noqa: E501 :rtype: str """ - return self._sub_category + return self._category - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. + @category.setter + def category(self, category): + """Sets the category of this Error. - A specific category that contains more specific detail about the error # noqa: E501 + The error category # noqa: E501 - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str + :param category: The category of this Error. # noqa: E501 + :type category: str """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 - self._sub_category = sub_category + self._category = category @property def context(self): @@ -137,6 +139,29 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def errors(self): + """Gets the errors of this Error. # noqa: E501 + + further information about the error # noqa: E501 + + :return: The errors of this Error. # noqa: E501 + :rtype: list[ErrorDetail] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this Error. + + further information about the error # noqa: E501 + + :param errors: The errors of this Error. # noqa: E501 + :type errors: list[ErrorDetail] + """ + + self._errors = errors + @property def links(self): """Gets the links of this Error. # noqa: E501 @@ -186,52 +211,27 @@ def message(self, message): self._message = message @property - def category(self): - """Gets the category of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - The error category # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The category of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._category - - @category.setter - def category(self, category): - """Sets the category of this Error. - - The error category # noqa: E501 - - :param category: The category of this Error. # noqa: E501 - :type category: str - """ - if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 - raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 - - self._category = category - - @property - def errors(self): - """Gets the errors of this Error. # noqa: E501 - - further information about the error # noqa: E501 - - :return: The errors of this Error. # noqa: E501 - :rtype: list[ErrorDetail] - """ - return self._errors + return self._sub_category - @errors.setter - def errors(self, errors): - """Sets the errors of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - further information about the error # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param errors: The errors of this Error. # noqa: E501 - :type errors: list[ErrorDetail] + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - self._errors = errors + self._sub_category = sub_category def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/line_items/models/error_detail.py b/hubspot/crm/line_items/models/error_detail.py index 513d1b63..2c60235f 100644 --- a/hubspot/crm/line_items/models/error_detail.py +++ b/hubspot/crm/line_items/models/error_detail.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,55 +35,32 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} + openapi_types = {"code": "str", "context": "dict[str, list[str]]", "_in": "str", "message": "str", "sub_category": "str"} - attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} + attribute_map = {"code": "code", "context": "context", "_in": "in", "message": "message", "sub_category": "subCategory"} - def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, code=None, context=None, _in=None, message=None, sub_category=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - 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._sub_category = None self._code = None - self.__in = None self._context = None + self.__in = None self._message = None + self._sub_category = None self.discriminator = None - if sub_category is not None: - self.sub_category = sub_category if code is not None: self.code = code - if _in is not None: - self._in = _in if context is not None: self.context = context + if _in is not None: + self._in = _in self.message = message - - @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category + if sub_category is not None: + self.sub_category = sub_category @property def code(self): @@ -108,29 +85,6 @@ def code(self, code): self._code = code - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 - - The name of the field or parameter in which the error was found. # noqa: E501 - - :return: The _in of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self.__in - - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. - - The name of the field or parameter in which the error was found. # noqa: E501 - - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str - """ - - self.__in = _in - @property def context(self): """Gets the context of this ErrorDetail. # noqa: E501 @@ -154,6 +108,29 @@ def context(self, context): self._context = context + @property + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 + + The name of the field or parameter in which the error was found. # noqa: E501 + + :return: The _in of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self.__in + + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. + + The name of the field or parameter in which the error was found. # noqa: E501 + + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str + """ + + self.__in = _in + @property def message(self): """Gets the message of this ErrorDetail. # noqa: E501 @@ -179,6 +156,29 @@ def message(self, message): self._message = message + @property + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 + + A specific category that contains more specific detail about the error # noqa: E501 + + :return: The sub_category of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._sub_category + + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. + + A specific category that contains more specific detail about the error # noqa: E501 + + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str + """ + + self._sub_category = sub_category + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/filter.py b/hubspot/crm/line_items/models/filter.py index 1dd5e4ac..64335b10 100644 --- a/hubspot/crm/line_items/models/filter.py +++ b/hubspot/crm/line_items/models/filter.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,36 +35,37 @@ class Filter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"high_value": "str", "property_name": "str", "values": "list[str]", "value": "str", "operator": "str"} + openapi_types = {"high_value": "str", "operator": "str", "property_name": "str", "value": "str", "values": "list[str]"} - attribute_map = {"high_value": "highValue", "property_name": "propertyName", "values": "values", "value": "value", "operator": "operator"} + attribute_map = {"high_value": "highValue", "operator": "operator", "property_name": "propertyName", "value": "value", "values": "values"} - def __init__(self, high_value=None, property_name=None, values=None, value=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, high_value=None, operator=None, property_name=None, value=None, values=None, local_vars_configuration=None): # noqa: E501 """Filter - 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._high_value = None + self._operator = None self._property_name = None - self._values = None self._value = None - self._operator = None + self._values = None self.discriminator = None if high_value is not None: self.high_value = high_value + self.operator = operator self.property_name = property_name - if values is not None: - self.values = values if value is not None: self.value = value - self.operator = operator + if values is not None: + self.values = values @property def high_value(self): """Gets the high_value of this Filter. # noqa: E501 + The upper boundary value when using ranged-based filters. # noqa: E501 :return: The high_value of this Filter. # noqa: E501 :rtype: str @@ -75,6 +76,7 @@ def high_value(self): def high_value(self, high_value): """Sets the high_value of this Filter. + The upper boundary value when using ranged-based filters. # noqa: E501 :param high_value: The high_value of this Filter. # noqa: E501 :type high_value: str @@ -82,10 +84,39 @@ def high_value(self, high_value): self._high_value = high_value + @property + def operator(self): + """Gets the operator of this Filter. # noqa: E501 + + null # noqa: E501 + + :return: The operator of this Filter. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this Filter. + + null # noqa: E501 + + :param operator: The operator of this Filter. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + allowed_values = ["BETWEEN", "CONTAINS_TOKEN", "EQ", "GT", "GTE", "HAS_PROPERTY", "IN", "LT", "LTE", "NEQ", "NOT_CONTAINS_TOKEN", "NOT_HAS_PROPERTY", "NOT_IN"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operator` ({0}), must be one of {1}".format(operator, allowed_values)) # noqa: E501 + + self._operator = operator + @property def property_name(self): """Gets the property_name of this Filter. # noqa: E501 + The name of the property to apply the filter to. # noqa: E501 :return: The property_name of this Filter. # noqa: E501 :rtype: str @@ -96,6 +127,7 @@ def property_name(self): def property_name(self, property_name): """Sets the property_name of this Filter. + The name of the property to apply the filter to. # noqa: E501 :param property_name: The property_name of this Filter. # noqa: E501 :type property_name: str @@ -105,31 +137,11 @@ def property_name(self, property_name): self._property_name = property_name - @property - def values(self): - """Gets the values of this Filter. # noqa: E501 - - - :return: The values of this Filter. # noqa: E501 - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this Filter. - - - :param values: The values of this Filter. # noqa: E501 - :type values: list[str] - """ - - self._values = values - @property def value(self): """Gets the value of this Filter. # noqa: E501 + The value to match against the property. # noqa: E501 :return: The value of this Filter. # noqa: E501 :rtype: str @@ -140,6 +152,7 @@ def value(self): def value(self, value): """Sets the value of this Filter. + The value to match against the property. # noqa: E501 :param value: The value of this Filter. # noqa: E501 :type value: str @@ -148,32 +161,27 @@ def value(self, value): self._value = value @property - def operator(self): - """Gets the operator of this Filter. # noqa: E501 + def values(self): + """Gets the values of this Filter. # noqa: E501 - null # noqa: E501 + The values to match against the property. # noqa: E501 - :return: The operator of this Filter. # noqa: E501 - :rtype: str + :return: The values of this Filter. # noqa: E501 + :rtype: list[str] """ - return self._operator + return self._values - @operator.setter - def operator(self, operator): - """Sets the operator of this Filter. + @values.setter + def values(self, values): + """Sets the values of this Filter. - null # noqa: E501 + The values to match against the property. # noqa: E501 - :param operator: The operator of this Filter. # noqa: E501 - :type operator: str + :param values: The values of this Filter. # noqa: E501 + :type values: list[str] """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - allowed_values = ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operator not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operator` ({0}), must be one of {1}".format(operator, allowed_values)) # noqa: E501 - self._operator = operator + self._values = values def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/line_items/models/filter_group.py b/hubspot/crm/line_items/models/filter_group.py index f47a3fa5..104bd7db 100644 --- a/hubspot/crm/line_items/models/filter_group.py +++ b/hubspot/crm/line_items/models/filter_group.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/forward_paging.py b/hubspot/crm/line_items/models/forward_paging.py deleted file mode 100644 index 6f0c40f3..00000000 --- a/hubspot/crm/line_items/models/forward_paging.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Line Items - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: v3 - Generated by: https://openapi-generator.tech -""" - - -try: - from inspect import getfullargspec -except ImportError: - from inspect import getargspec as getfullargspec -import pprint -import re # noqa: F401 -import six - -from hubspot.crm.line_items.configuration import Configuration - - -class ForwardPaging(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = {"next": "NextPage"} - - attribute_map = {"next": "next"} - - def __init__(self, next=None, local_vars_configuration=None): # noqa: E501 - """ForwardPaging - 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._next = None - self.discriminator = None - - if next is not None: - self.next = next - - @property - def next(self): - """Gets the next of this ForwardPaging. # noqa: E501 - - - :return: The next of this ForwardPaging. # noqa: E501 - :rtype: NextPage - """ - return self._next - - @next.setter - def next(self, next): - """Sets the next of this ForwardPaging. - - - :param next: The next of this ForwardPaging. # noqa: E501 - :type next: NextPage - """ - - self._next = next - - def to_dict(self, serialize=False): - """Returns the model properties as a dict""" - result = {} - - def convert(x): - if hasattr(x, "to_dict"): - args = getfullargspec(x.to_dict).args - if len(args) == 1: - return x.to_dict() - else: - return x.to_dict(serialize) - else: - return x - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - attr = self.attribute_map.get(attr, attr) if serialize else attr - if isinstance(value, list): - result[attr] = list(map(lambda x: convert(x), value)) - elif isinstance(value, dict): - result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) - else: - result[attr] = convert(value) - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ForwardPaging): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ForwardPaging): - return True - - return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/next_page.py b/hubspot/crm/line_items/models/next_page.py index 291d8cc7..00e9b9ca 100644 --- a/hubspot/crm/line_items/models/next_page.py +++ b/hubspot/crm/line_items/models/next_page.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,49 +35,29 @@ class NextPage(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"link": "str", "after": "str"} + openapi_types = {"after": "str", "link": "str"} - attribute_map = {"link": "link", "after": "after"} + attribute_map = {"after": "after", "link": "link"} - def __init__(self, link=None, after=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, after=None, link=None, local_vars_configuration=None): # noqa: E501 """NextPage - 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._link = None self._after = None + self._link = None self.discriminator = None + self.after = after if link is not None: self.link = link - self.after = after - - @property - def link(self): - """Gets the link of this NextPage. # noqa: E501 - - - :return: The link of this NextPage. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this NextPage. - - - :param link: The link of this NextPage. # noqa: E501 - :type link: str - """ - - self._link = link @property def after(self): """Gets the after of this NextPage. # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :return: The after of this NextPage. # noqa: E501 :rtype: str @@ -88,6 +68,7 @@ def after(self): def after(self, after): """Sets the after of this NextPage. + A paging cursor token for retrieving subsequent pages. # noqa: E501 :param after: The after of this NextPage. # noqa: E501 :type after: str @@ -97,6 +78,29 @@ def after(self, after): self._after = after + @property + def link(self): + """Gets the link of this NextPage. # noqa: E501 + + A URL that can be used to retrieve the next page results. # noqa: E501 + + :return: The link of this NextPage. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this NextPage. + + A URL that can be used to retrieve the next page results. # noqa: E501 + + :param link: The link of this NextPage. # noqa: E501 + :type link: str + """ + + self._link = link + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/paging.py b/hubspot/crm/line_items/models/paging.py index 9257e444..da1c38d1 100644 --- a/hubspot/crm/line_items/models/paging.py +++ b/hubspot/crm/line_items/models/paging.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/line_items/models/previous_page.py b/hubspot/crm/line_items/models/previous_page.py index b8d995fd..d46f675b 100644 --- a/hubspot/crm/line_items/models/previous_page.py +++ b/hubspot/crm/line_items/models/previous_page.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -57,6 +57,7 @@ def __init__(self, before=None, link=None, local_vars_configuration=None): # no def before(self): """Gets the before of this PreviousPage. # noqa: E501 + A paging cursor token for retrieving previous pages. # noqa: E501 :return: The before of this PreviousPage. # noqa: E501 :rtype: str @@ -67,6 +68,7 @@ def before(self): def before(self, before): """Sets the before of this PreviousPage. + A paging cursor token for retrieving previous pages. # noqa: E501 :param before: The before of this PreviousPage. # noqa: E501 :type before: str @@ -80,6 +82,7 @@ def before(self, before): def link(self): """Gets the link of this PreviousPage. # noqa: E501 + A URL that can be used to retrieve the previous pages' results. # noqa: E501 :return: The link of this PreviousPage. # noqa: E501 :rtype: str @@ -90,6 +93,7 @@ def link(self): def link(self, link): """Sets the link of this PreviousPage. + A URL that can be used to retrieve the previous pages' results. # noqa: E501 :param link: The link of this PreviousPage. # noqa: E501 :type link: str diff --git a/hubspot/crm/line_items/models/public_associations_for_object.py b/hubspot/crm/line_items/models/public_associations_for_object.py index bfda95e1..b7a46095 100644 --- a/hubspot/crm/line_items/models/public_associations_for_object.py +++ b/hubspot/crm/line_items/models/public_associations_for_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,45 +35,22 @@ class PublicAssociationsForObject(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"types": "list[AssociationSpec]", "to": "PublicObjectId"} + openapi_types = {"to": "PublicObjectId", "types": "list[AssociationSpec]"} - attribute_map = {"types": "types", "to": "to"} + attribute_map = {"to": "to", "types": "types"} - def __init__(self, types=None, to=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, to=None, types=None, local_vars_configuration=None): # noqa: E501 """PublicAssociationsForObject - 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._types = None self._to = None + self._types = None self.discriminator = None - self.types = types self.to = to - - @property - def types(self): - """Gets the types of this PublicAssociationsForObject. # noqa: E501 - - - :return: The types of this PublicAssociationsForObject. # noqa: E501 - :rtype: list[AssociationSpec] - """ - return self._types - - @types.setter - def types(self, types): - """Sets the types of this PublicAssociationsForObject. - - - :param types: The types of this PublicAssociationsForObject. # noqa: E501 - :type types: list[AssociationSpec] - """ - if self.local_vars_configuration.client_side_validation and types is None: # noqa: E501 - raise ValueError("Invalid value for `types`, must not be `None`") # noqa: E501 - - self._types = types + self.types = types @property def to(self): @@ -98,6 +75,29 @@ def to(self, to): self._to = to + @property + def types(self): + """Gets the types of this PublicAssociationsForObject. # noqa: E501 + + + :return: The types of this PublicAssociationsForObject. # noqa: E501 + :rtype: list[AssociationSpec] + """ + return self._types + + @types.setter + def types(self, types): + """Sets the types of this PublicAssociationsForObject. + + + :param types: The types of this PublicAssociationsForObject. # noqa: E501 + :type types: list[AssociationSpec] + """ + if self.local_vars_configuration.client_side_validation and types is None: # noqa: E501 + raise ValueError("Invalid value for `types`, must not be `None`") # noqa: E501 + + self._types = types + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/public_object_id.py b/hubspot/crm/line_items/models/public_object_id.py index 282495fc..68ee1649 100644 --- a/hubspot/crm/line_items/models/public_object_id.py +++ b/hubspot/crm/line_items/models/public_object_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -54,6 +54,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501 def id(self): """Gets the id of this PublicObjectId. # noqa: E501 + The unique ID of the object. # noqa: E501 :return: The id of this PublicObjectId. # noqa: E501 :rtype: str @@ -64,6 +65,7 @@ def id(self): def id(self, id): """Sets the id of this PublicObjectId. + The unique ID of the object. # noqa: E501 :param id: The id of this PublicObjectId. # noqa: E501 :type id: str diff --git a/hubspot/crm/line_items/models/public_object_search_request.py b/hubspot/crm/line_items/models/public_object_search_request.py index e13302ea..59530eaf 100644 --- a/hubspot/crm/line_items/models/public_object_search_request.py +++ b/hubspot/crm/line_items/models/public_object_search_request.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,62 +35,88 @@ class PublicObjectSearchRequest(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"query": "str", "limit": "int", "after": "str", "sorts": "list[str]", "properties": "list[str]", "filter_groups": "list[FilterGroup]"} + openapi_types = {"after": "str", "filter_groups": "list[FilterGroup]", "limit": "int", "properties": "list[str]", "query": "str", "sorts": "list[str]"} - attribute_map = {"query": "query", "limit": "limit", "after": "after", "sorts": "sorts", "properties": "properties", "filter_groups": "filterGroups"} + attribute_map = {"after": "after", "filter_groups": "filterGroups", "limit": "limit", "properties": "properties", "query": "query", "sorts": "sorts"} - def __init__(self, query=None, limit=None, after=None, sorts=None, properties=None, filter_groups=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, after=None, filter_groups=None, limit=None, properties=None, query=None, sorts=None, local_vars_configuration=None): # noqa: E501 """PublicObjectSearchRequest - 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._query = None - self._limit = None self._after = None - self._sorts = None - self._properties = None self._filter_groups = None + self._limit = None + self._properties = None + self._query = None + self._sorts = None self.discriminator = None - if query is not None: - self.query = query - if limit is not None: - self.limit = limit if after is not None: self.after = after - if sorts is not None: - self.sorts = sorts - if properties is not None: - self.properties = properties if filter_groups is not None: self.filter_groups = filter_groups + if limit is not None: + self.limit = limit + if properties is not None: + self.properties = properties + if query is not None: + self.query = query + if sorts is not None: + self.sorts = sorts @property - def query(self): - """Gets the query of this PublicObjectSearchRequest. # noqa: E501 + def after(self): + """Gets the after of this PublicObjectSearchRequest. # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 - :return: The query of this PublicObjectSearchRequest. # noqa: E501 + :return: The after of this PublicObjectSearchRequest. # noqa: E501 :rtype: str """ - return self._query + return self._after - @query.setter - def query(self, query): - """Sets the query of this PublicObjectSearchRequest. + @after.setter + def after(self, after): + """Sets the after of this PublicObjectSearchRequest. + A paging cursor token for retrieving subsequent pages. # noqa: E501 - :param query: The query of this PublicObjectSearchRequest. # noqa: E501 - :type query: str + :param after: The after of this PublicObjectSearchRequest. # noqa: E501 + :type after: str """ - self._query = query + self._after = after + + @property + def filter_groups(self): + """Gets the filter_groups of this PublicObjectSearchRequest. # noqa: E501 + + Up to 6 groups of filters defining additional query criteria. # noqa: E501 + + :return: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 + :rtype: list[FilterGroup] + """ + return self._filter_groups + + @filter_groups.setter + def filter_groups(self, filter_groups): + """Sets the filter_groups of this PublicObjectSearchRequest. + + Up to 6 groups of filters defining additional query criteria. # noqa: E501 + + :param filter_groups: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 + :type filter_groups: list[FilterGroup] + """ + + self._filter_groups = filter_groups @property def limit(self): """Gets the limit of this PublicObjectSearchRequest. # noqa: E501 + The maximum results to return, up to 200 objects. # noqa: E501 :return: The limit of this PublicObjectSearchRequest. # noqa: E501 :rtype: int @@ -101,6 +127,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this PublicObjectSearchRequest. + The maximum results to return, up to 200 objects. # noqa: E501 :param limit: The limit of this PublicObjectSearchRequest. # noqa: E501 :type limit: int @@ -109,30 +136,56 @@ def limit(self, limit): self._limit = limit @property - def after(self): - """Gets the after of this PublicObjectSearchRequest. # noqa: E501 + def properties(self): + """Gets the properties of this PublicObjectSearchRequest. # noqa: E501 + A list of property names to include in the response. # noqa: E501 - :return: The after of this PublicObjectSearchRequest. # noqa: E501 + :return: The properties of this PublicObjectSearchRequest. # noqa: E501 + :rtype: list[str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PublicObjectSearchRequest. + + A list of property names to include in the response. # noqa: E501 + + :param properties: The properties of this PublicObjectSearchRequest. # noqa: E501 + :type properties: list[str] + """ + + self._properties = properties + + @property + def query(self): + """Gets the query of this PublicObjectSearchRequest. # noqa: E501 + + The search query string, up to 3000 characters. # noqa: E501 + + :return: The query of this PublicObjectSearchRequest. # noqa: E501 :rtype: str """ - return self._after + return self._query - @after.setter - def after(self, after): - """Sets the after of this PublicObjectSearchRequest. + @query.setter + def query(self, query): + """Sets the query of this PublicObjectSearchRequest. + The search query string, up to 3000 characters. # noqa: E501 - :param after: The after of this PublicObjectSearchRequest. # noqa: E501 - :type after: str + :param query: The query of this PublicObjectSearchRequest. # noqa: E501 + :type query: str """ - self._after = after + self._query = query @property def sorts(self): """Gets the sorts of this PublicObjectSearchRequest. # noqa: E501 + Specifies sorting order based on object properties. # noqa: E501 :return: The sorts of this PublicObjectSearchRequest. # noqa: E501 :rtype: list[str] @@ -143,6 +196,7 @@ def sorts(self): def sorts(self, sorts): """Sets the sorts of this PublicObjectSearchRequest. + Specifies sorting order based on object properties. # noqa: E501 :param sorts: The sorts of this PublicObjectSearchRequest. # noqa: E501 :type sorts: list[str] @@ -150,48 +204,6 @@ def sorts(self, sorts): self._sorts = sorts - @property - def properties(self): - """Gets the properties of this PublicObjectSearchRequest. # noqa: E501 - - - :return: The properties of this PublicObjectSearchRequest. # noqa: E501 - :rtype: list[str] - """ - return self._properties - - @properties.setter - def properties(self, properties): - """Sets the properties of this PublicObjectSearchRequest. - - - :param properties: The properties of this PublicObjectSearchRequest. # noqa: E501 - :type properties: list[str] - """ - - self._properties = properties - - @property - def filter_groups(self): - """Gets the filter_groups of this PublicObjectSearchRequest. # noqa: E501 - - - :return: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 - :rtype: list[FilterGroup] - """ - return self._filter_groups - - @filter_groups.setter - def filter_groups(self, filter_groups): - """Sets the filter_groups of this PublicObjectSearchRequest. - - - :param filter_groups: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 - :type filter_groups: list[FilterGroup] - """ - - self._filter_groups = filter_groups - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/simple_public_object.py b/hubspot/crm/line_items/models/simple_public_object.py index 419a6af5..c4743618 100644 --- a/hubspot/crm/line_items/models/simple_public_object.py +++ b/hubspot/crm/line_items/models/simple_public_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,85 +36,62 @@ class SimplePublicObject(object): and the value is json key in definition. """ openapi_types = { - "created_at": "datetime", "archived": "bool", "archived_at": "datetime", - "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "created_at": "datetime", "id": "str", "object_write_trace_id": "str", "properties": "dict[str, str]", + "properties_with_history": "dict[str, list[ValueWithTimestamp]]", "updated_at": "datetime", } attribute_map = { - "created_at": "createdAt", "archived": "archived", "archived_at": "archivedAt", - "properties_with_history": "propertiesWithHistory", + "created_at": "createdAt", "id": "id", "object_write_trace_id": "objectWriteTraceId", "properties": "properties", + "properties_with_history": "propertiesWithHistory", "updated_at": "updatedAt", } def __init__( - self, created_at=None, archived=None, archived_at=None, properties_with_history=None, id=None, object_write_trace_id=None, properties=None, updated_at=None, local_vars_configuration=None + self, archived=None, archived_at=None, created_at=None, id=None, object_write_trace_id=None, properties=None, properties_with_history=None, updated_at=None, local_vars_configuration=None ): # noqa: E501 """SimplePublicObject - 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._created_at = None self._archived = None self._archived_at = None - self._properties_with_history = None + self._created_at = None self._id = None self._object_write_trace_id = None self._properties = None + self._properties_with_history = None self._updated_at = None self.discriminator = None - self.created_at = created_at - if archived is not None: - self.archived = archived + self.archived = archived if archived_at is not None: self.archived_at = archived_at - if properties_with_history is not None: - self.properties_with_history = properties_with_history + self.created_at = created_at self.id = id if object_write_trace_id is not None: self.object_write_trace_id = object_write_trace_id self.properties = properties + if properties_with_history is not None: + self.properties_with_history = properties_with_history self.updated_at = updated_at - @property - def created_at(self): - """Gets the created_at of this SimplePublicObject. # noqa: E501 - - - :return: The created_at of this SimplePublicObject. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this SimplePublicObject. - - - :param created_at: The created_at of this SimplePublicObject. # noqa: E501 - :type created_at: datetime - """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - @property def archived(self): """Gets the archived of this SimplePublicObject. # noqa: E501 + Whether the object is archived. # noqa: E501 :return: The archived of this SimplePublicObject. # noqa: E501 :rtype: bool @@ -125,10 +102,13 @@ def archived(self): def archived(self, archived): """Sets the archived of this SimplePublicObject. + Whether the object is archived. # noqa: E501 :param archived: The archived of this SimplePublicObject. # noqa: E501 :type archived: bool """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 self._archived = archived @@ -136,6 +116,7 @@ def archived(self, archived): def archived_at(self): """Gets the archived_at of this SimplePublicObject. # noqa: E501 + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :return: The archived_at of this SimplePublicObject. # noqa: E501 :rtype: datetime @@ -146,6 +127,7 @@ def archived_at(self): def archived_at(self, archived_at): """Sets the archived_at of this SimplePublicObject. + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :param archived_at: The archived_at of this SimplePublicObject. # noqa: E501 :type archived_at: datetime @@ -154,30 +136,35 @@ def archived_at(self, archived_at): self._archived_at = archived_at @property - def properties_with_history(self): - """Gets the properties_with_history of this SimplePublicObject. # noqa: E501 + def created_at(self): + """Gets the created_at of this SimplePublicObject. # noqa: E501 + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 - :return: The properties_with_history of this SimplePublicObject. # noqa: E501 - :rtype: dict[str, list[ValueWithTimestamp]] + :return: The created_at of this SimplePublicObject. # noqa: E501 + :rtype: datetime """ - return self._properties_with_history + return self._created_at - @properties_with_history.setter - def properties_with_history(self, properties_with_history): - """Sets the properties_with_history of this SimplePublicObject. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this SimplePublicObject. + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 - :param properties_with_history: The properties_with_history of this SimplePublicObject. # noqa: E501 - :type properties_with_history: dict[str, list[ValueWithTimestamp]] + :param created_at: The created_at of this SimplePublicObject. # noqa: E501 + :type created_at: datetime """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - self._properties_with_history = properties_with_history + self._created_at = created_at @property def id(self): """Gets the id of this SimplePublicObject. # noqa: E501 + The unique ID of the object. # noqa: E501 :return: The id of this SimplePublicObject. # noqa: E501 :rtype: str @@ -188,6 +175,7 @@ def id(self): def id(self, id): """Sets the id of this SimplePublicObject. + The unique ID of the object. # noqa: E501 :param id: The id of this SimplePublicObject. # noqa: E501 :type id: str @@ -201,6 +189,7 @@ def id(self, id): def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicObject. # noqa: E501 + An identifier used for tracing the write request for the object. # noqa: E501 :return: The object_write_trace_id of this SimplePublicObject. # noqa: E501 :rtype: str @@ -211,6 +200,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicObject. + An identifier used for tracing the write request for the object. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicObject. # noqa: E501 :type object_write_trace_id: str @@ -222,6 +212,7 @@ def object_write_trace_id(self, object_write_trace_id): def properties(self): """Gets the properties of this SimplePublicObject. # noqa: E501 + Key-value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObject. # noqa: E501 :rtype: dict[str, str] @@ -232,6 +223,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObject. + Key-value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObject. # noqa: E501 :type properties: dict[str, str] @@ -241,10 +233,34 @@ def properties(self, properties): self._properties = properties + @property + def properties_with_history(self): + """Gets the properties_with_history of this SimplePublicObject. # noqa: E501 + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :return: The properties_with_history of this SimplePublicObject. # noqa: E501 + :rtype: dict[str, list[ValueWithTimestamp]] + """ + return self._properties_with_history + + @properties_with_history.setter + def properties_with_history(self, properties_with_history): + """Sets the properties_with_history of this SimplePublicObject. + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :param properties_with_history: The properties_with_history of this SimplePublicObject. # noqa: E501 + :type properties_with_history: dict[str, list[ValueWithTimestamp]] + """ + + self._properties_with_history = properties_with_history + @property def updated_at(self): """Gets the updated_at of this SimplePublicObject. # noqa: E501 + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :return: The updated_at of this SimplePublicObject. # noqa: E501 :rtype: datetime @@ -255,6 +271,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this SimplePublicObject. + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :param updated_at: The updated_at of this SimplePublicObject. # noqa: E501 :type updated_at: datetime diff --git a/hubspot/crm/line_items/models/simple_public_object_batch_input.py b/hubspot/crm/line_items/models/simple_public_object_batch_input.py index e3b9bc19..20526103 100644 --- a/hubspot/crm/line_items/models/simple_public_object_batch_input.py +++ b/hubspot/crm/line_items/models/simple_public_object_batch_input.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,29 +35,54 @@ class SimplePublicObjectBatchInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"id_property": "str", "object_write_trace_id": "str", "id": "str", "properties": "dict[str, str]"} + openapi_types = {"id": "str", "id_property": "str", "object_write_trace_id": "str", "properties": "dict[str, str]"} - attribute_map = {"id_property": "idProperty", "object_write_trace_id": "objectWriteTraceId", "id": "id", "properties": "properties"} + attribute_map = {"id": "id", "id_property": "idProperty", "object_write_trace_id": "objectWriteTraceId", "properties": "properties"} - def __init__(self, id_property=None, object_write_trace_id=None, id=None, properties=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id=None, id_property=None, object_write_trace_id=None, properties=None, local_vars_configuration=None): # noqa: E501 """SimplePublicObjectBatchInput - 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._id = None self._id_property = None self._object_write_trace_id = None - self._id = None self._properties = None self.discriminator = None + self.id = id if id_property is not None: self.id_property = id_property if object_write_trace_id is not None: self.object_write_trace_id = object_write_trace_id - self.id = id self.properties = properties + @property + def id(self): + """Gets the id of this SimplePublicObjectBatchInput. # noqa: E501 + + The id to be updated. This can be the object id, or the unique property value of the idProperty property # noqa: E501 + + :return: The id of this SimplePublicObjectBatchInput. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SimplePublicObjectBatchInput. + + The id to be updated. This can be the object id, or the unique property value of the idProperty property # noqa: E501 + + :param id: The id of this SimplePublicObjectBatchInput. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + @property def id_property(self): """Gets the id_property of this SimplePublicObjectBatchInput. # noqa: E501 @@ -85,6 +110,7 @@ def id_property(self, id_property): def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicObjectBatchInput. # noqa: E501 + A unique identifier for tracing the request. # noqa: E501 :return: The object_write_trace_id of this SimplePublicObjectBatchInput. # noqa: E501 :rtype: str @@ -95,6 +121,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicObjectBatchInput. + A unique identifier for tracing the request. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicObjectBatchInput. # noqa: E501 :type object_write_trace_id: str @@ -102,35 +129,11 @@ def object_write_trace_id(self, object_write_trace_id): self._object_write_trace_id = object_write_trace_id - @property - def id(self): - """Gets the id of this SimplePublicObjectBatchInput. # noqa: E501 - - The id to be updated. This can be the object id, or the unique property value of the idProperty property # noqa: E501 - - :return: The id of this SimplePublicObjectBatchInput. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this SimplePublicObjectBatchInput. - - The id to be updated. This can be the object id, or the unique property value of the idProperty property # noqa: E501 - - :param id: The id of this SimplePublicObjectBatchInput. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def properties(self): """Gets the properties of this SimplePublicObjectBatchInput. # noqa: E501 + Key-value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObjectBatchInput. # noqa: E501 :rtype: dict[str, str] @@ -141,6 +144,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectBatchInput. + Key-value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObjectBatchInput. # noqa: E501 :type properties: dict[str, str] diff --git a/hubspot/crm/line_items/models/simple_public_object_batch_input_for_create.py b/hubspot/crm/line_items/models/simple_public_object_batch_input_for_create.py index 5cca119f..b4f1f711 100644 --- a/hubspot/crm/line_items/models/simple_public_object_batch_input_for_create.py +++ b/hubspot/crm/line_items/models/simple_public_object_batch_input_for_create.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -81,6 +81,7 @@ def associations(self, associations): def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicObjectBatchInputForCreate. # noqa: E501 + An identifier used for tracing the creation or update request of the object. # noqa: E501 :return: The object_write_trace_id of this SimplePublicObjectBatchInputForCreate. # noqa: E501 :rtype: str @@ -91,6 +92,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicObjectBatchInputForCreate. + An identifier used for tracing the creation or update request of the object. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicObjectBatchInputForCreate. # noqa: E501 :type object_write_trace_id: str @@ -102,6 +104,7 @@ def object_write_trace_id(self, object_write_trace_id): def properties(self): """Gets the properties of this SimplePublicObjectBatchInputForCreate. # noqa: E501 + Key value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObjectBatchInputForCreate. # noqa: E501 :rtype: dict[str, str] @@ -112,6 +115,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectBatchInputForCreate. + Key value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObjectBatchInputForCreate. # noqa: E501 :type properties: dict[str, str] diff --git a/hubspot/crm/line_items/models/simple_public_object_batch_input_upsert.py b/hubspot/crm/line_items/models/simple_public_object_batch_input_upsert.py index 2b0f46b9..695dc4b4 100644 --- a/hubspot/crm/line_items/models/simple_public_object_batch_input_upsert.py +++ b/hubspot/crm/line_items/models/simple_public_object_batch_input_upsert.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,29 +35,54 @@ class SimplePublicObjectBatchInputUpsert(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"id_property": "str", "object_write_trace_id": "str", "id": "str", "properties": "dict[str, str]"} + openapi_types = {"id": "str", "id_property": "str", "object_write_trace_id": "str", "properties": "dict[str, str]"} - attribute_map = {"id_property": "idProperty", "object_write_trace_id": "objectWriteTraceId", "id": "id", "properties": "properties"} + attribute_map = {"id": "id", "id_property": "idProperty", "object_write_trace_id": "objectWriteTraceId", "properties": "properties"} - def __init__(self, id_property=None, object_write_trace_id=None, id=None, properties=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id=None, id_property=None, object_write_trace_id=None, properties=None, local_vars_configuration=None): # noqa: E501 """SimplePublicObjectBatchInputUpsert - 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._id = None self._id_property = None self._object_write_trace_id = None - self._id = None self._properties = None self.discriminator = None + self.id = id if id_property is not None: self.id_property = id_property if object_write_trace_id is not None: self.object_write_trace_id = object_write_trace_id - self.id = id self.properties = properties + @property + def id(self): + """Gets the id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 + + The unique ID of the object. # noqa: E501 + + :return: The id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SimplePublicObjectBatchInputUpsert. + + The unique ID of the object. # noqa: E501 + + :param id: The id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + @property def id_property(self): """Gets the id_property of this SimplePublicObjectBatchInputUpsert. # noqa: E501 @@ -85,6 +110,7 @@ def id_property(self, id_property): def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 + An identifier for tracing the creation request. # noqa: E501 :return: The object_write_trace_id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 :rtype: str @@ -95,6 +121,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicObjectBatchInputUpsert. + An identifier for tracing the creation request. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 :type object_write_trace_id: str @@ -102,33 +129,11 @@ def object_write_trace_id(self, object_write_trace_id): self._object_write_trace_id = object_write_trace_id - @property - def id(self): - """Gets the id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 - - - :return: The id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this SimplePublicObjectBatchInputUpsert. - - - :param id: The id of this SimplePublicObjectBatchInputUpsert. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def properties(self): """Gets the properties of this SimplePublicObjectBatchInputUpsert. # noqa: E501 + Key value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObjectBatchInputUpsert. # noqa: E501 :rtype: dict[str, str] @@ -139,6 +144,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectBatchInputUpsert. + Key value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObjectBatchInputUpsert. # noqa: E501 :type properties: dict[str, str] diff --git a/hubspot/crm/line_items/models/simple_public_object_id.py b/hubspot/crm/line_items/models/simple_public_object_id.py index 5f1fe260..f60e0cfa 100644 --- a/hubspot/crm/line_items/models/simple_public_object_id.py +++ b/hubspot/crm/line_items/models/simple_public_object_id.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -54,6 +54,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501 def id(self): """Gets the id of this SimplePublicObjectId. # noqa: E501 + The unique ID of the object. # noqa: E501 :return: The id of this SimplePublicObjectId. # noqa: E501 :rtype: str @@ -64,6 +65,7 @@ def id(self): def id(self, id): """Sets the id of this SimplePublicObjectId. + The unique ID of the object. # noqa: E501 :param id: The id of this SimplePublicObjectId. # noqa: E501 :type id: str diff --git a/hubspot/crm/line_items/models/simple_public_object_input.py b/hubspot/crm/line_items/models/simple_public_object_input.py index e7ef6273..033785f4 100644 --- a/hubspot/crm/line_items/models/simple_public_object_input.py +++ b/hubspot/crm/line_items/models/simple_public_object_input.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -54,6 +54,7 @@ def __init__(self, properties=None, local_vars_configuration=None): # noqa: E50 def properties(self): """Gets the properties of this SimplePublicObjectInput. # noqa: E501 + Key value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObjectInput. # noqa: E501 :rtype: dict[str, str] @@ -64,6 +65,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectInput. + Key value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObjectInput. # noqa: E501 :type properties: dict[str, str] diff --git a/hubspot/crm/line_items/models/simple_public_object_input_for_create.py b/hubspot/crm/line_items/models/simple_public_object_input_for_create.py index 03d04812..279b1f41 100644 --- a/hubspot/crm/line_items/models/simple_public_object_input_for_create.py +++ b/hubspot/crm/line_items/models/simple_public_object_input_for_create.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -78,6 +78,7 @@ def associations(self, associations): def properties(self): """Gets the properties of this SimplePublicObjectInputForCreate. # noqa: E501 + Key-value pairs for setting properties for the new object. # noqa: E501 :return: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 :rtype: dict[str, str] @@ -88,6 +89,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectInputForCreate. + Key-value pairs for setting properties for the new object. # noqa: E501 :param properties: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 :type properties: dict[str, str] diff --git a/hubspot/crm/line_items/models/simple_public_object_with_associations.py b/hubspot/crm/line_items/models/simple_public_object_with_associations.py index dee18d7a..cc3f9a74 100644 --- a/hubspot/crm/line_items/models/simple_public_object_with_associations.py +++ b/hubspot/crm/line_items/models/simple_public_object_with_associations.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,39 +36,39 @@ class SimplePublicObjectWithAssociations(object): and the value is json key in definition. """ openapi_types = { - "associations": "dict[str, CollectionResponseAssociatedId]", - "created_at": "datetime", "archived": "bool", "archived_at": "datetime", - "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "associations": "dict[str, CollectionResponseAssociatedId]", + "created_at": "datetime", "id": "str", "object_write_trace_id": "str", "properties": "dict[str, str]", + "properties_with_history": "dict[str, list[ValueWithTimestamp]]", "updated_at": "datetime", } attribute_map = { - "associations": "associations", - "created_at": "createdAt", "archived": "archived", "archived_at": "archivedAt", - "properties_with_history": "propertiesWithHistory", + "associations": "associations", + "created_at": "createdAt", "id": "id", "object_write_trace_id": "objectWriteTraceId", "properties": "properties", + "properties_with_history": "propertiesWithHistory", "updated_at": "updatedAt", } def __init__( self, - associations=None, - created_at=None, archived=None, archived_at=None, - properties_with_history=None, + associations=None, + created_at=None, id=None, object_write_trace_id=None, properties=None, + properties_with_history=None, updated_at=None, local_vars_configuration=None, ): # noqa: E501 @@ -77,80 +77,36 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._associations = None - self._created_at = None self._archived = None self._archived_at = None - self._properties_with_history = None + self._associations = None + self._created_at = None self._id = None self._object_write_trace_id = None self._properties = None + self._properties_with_history = None self._updated_at = None self.discriminator = None + self.archived = archived + if archived_at is not None: + self.archived_at = archived_at if associations is not None: self.associations = associations self.created_at = created_at - if archived is not None: - self.archived = archived - if archived_at is not None: - self.archived_at = archived_at - if properties_with_history is not None: - self.properties_with_history = properties_with_history self.id = id if object_write_trace_id is not None: self.object_write_trace_id = object_write_trace_id self.properties = properties + if properties_with_history is not None: + self.properties_with_history = properties_with_history self.updated_at = updated_at - @property - def associations(self): - """Gets the associations of this SimplePublicObjectWithAssociations. # noqa: E501 - - - :return: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: dict[str, CollectionResponseAssociatedId] - """ - return self._associations - - @associations.setter - def associations(self, associations): - """Sets the associations of this SimplePublicObjectWithAssociations. - - - :param associations: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 - :type associations: dict[str, CollectionResponseAssociatedId] - """ - - self._associations = associations - - @property - def created_at(self): - """Gets the created_at of this SimplePublicObjectWithAssociations. # noqa: E501 - - - :return: The created_at of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this SimplePublicObjectWithAssociations. - - - :param created_at: The created_at of this SimplePublicObjectWithAssociations. # noqa: E501 - :type created_at: datetime - """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - @property def archived(self): """Gets the archived of this SimplePublicObjectWithAssociations. # noqa: E501 + Whether the object is archived. # noqa: E501 :return: The archived of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: bool @@ -161,10 +117,13 @@ def archived(self): def archived(self, archived): """Sets the archived of this SimplePublicObjectWithAssociations. + Whether the object is archived. # noqa: E501 :param archived: The archived of this SimplePublicObjectWithAssociations. # noqa: E501 :type archived: bool """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 self._archived = archived @@ -172,6 +131,7 @@ def archived(self, archived): def archived_at(self): """Gets the archived_at of this SimplePublicObjectWithAssociations. # noqa: E501 + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :return: The archived_at of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: datetime @@ -182,6 +142,7 @@ def archived_at(self): def archived_at(self, archived_at): """Sets the archived_at of this SimplePublicObjectWithAssociations. + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :param archived_at: The archived_at of this SimplePublicObjectWithAssociations. # noqa: E501 :type archived_at: datetime @@ -190,30 +151,58 @@ def archived_at(self, archived_at): self._archived_at = archived_at @property - def properties_with_history(self): - """Gets the properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + def associations(self): + """Gets the associations of this SimplePublicObjectWithAssociations. # noqa: E501 + A list defining relationships with other objects. # noqa: E501 - :return: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: dict[str, list[ValueWithTimestamp]] + :return: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: dict[str, CollectionResponseAssociatedId] """ - return self._properties_with_history + return self._associations - @properties_with_history.setter - def properties_with_history(self, properties_with_history): - """Sets the properties_with_history of this SimplePublicObjectWithAssociations. + @associations.setter + def associations(self, associations): + """Sets the associations of this SimplePublicObjectWithAssociations. + A list defining relationships with other objects. # noqa: E501 - :param properties_with_history: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 - :type properties_with_history: dict[str, list[ValueWithTimestamp]] + :param associations: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 + :type associations: dict[str, CollectionResponseAssociatedId] """ - self._properties_with_history = properties_with_history + self._associations = associations + + @property + def created_at(self): + """Gets the created_at of this SimplePublicObjectWithAssociations. # noqa: E501 + + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 + + :return: The created_at of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this SimplePublicObjectWithAssociations. + + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 + + :param created_at: The created_at of this SimplePublicObjectWithAssociations. # noqa: E501 + :type created_at: datetime + """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at @property def id(self): """Gets the id of this SimplePublicObjectWithAssociations. # noqa: E501 + The unique ID of the object. # noqa: E501 :return: The id of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: str @@ -224,6 +213,7 @@ def id(self): def id(self, id): """Sets the id of this SimplePublicObjectWithAssociations. + The unique ID of the object. # noqa: E501 :param id: The id of this SimplePublicObjectWithAssociations. # noqa: E501 :type id: str @@ -237,6 +227,7 @@ def id(self, id): def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicObjectWithAssociations. # noqa: E501 + An identifier used for tracing the creation or update request of the object. # noqa: E501 :return: The object_write_trace_id of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: str @@ -247,6 +238,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicObjectWithAssociations. + An identifier used for tracing the creation or update request of the object. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicObjectWithAssociations. # noqa: E501 :type object_write_trace_id: str @@ -258,6 +250,7 @@ def object_write_trace_id(self, object_write_trace_id): def properties(self): """Gets the properties of this SimplePublicObjectWithAssociations. # noqa: E501 + Key value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: dict[str, str] @@ -268,6 +261,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectWithAssociations. + Key value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 :type properties: dict[str, str] @@ -277,10 +271,34 @@ def properties(self, properties): self._properties = properties + @property + def properties_with_history(self): + """Gets the properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :return: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: dict[str, list[ValueWithTimestamp]] + """ + return self._properties_with_history + + @properties_with_history.setter + def properties_with_history(self, properties_with_history): + """Sets the properties_with_history of this SimplePublicObjectWithAssociations. + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :param properties_with_history: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + :type properties_with_history: dict[str, list[ValueWithTimestamp]] + """ + + self._properties_with_history = properties_with_history + @property def updated_at(self): """Gets the updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :return: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: datetime @@ -291,6 +309,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this SimplePublicObjectWithAssociations. + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :param updated_at: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 :type updated_at: datetime diff --git a/hubspot/crm/line_items/models/simple_public_upsert_object.py b/hubspot/crm/line_items/models/simple_public_upsert_object.py index 08c25aec..891a2c92 100644 --- a/hubspot/crm/line_items/models/simple_public_upsert_object.py +++ b/hubspot/crm/line_items/models/simple_public_upsert_object.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,39 +36,39 @@ class SimplePublicUpsertObject(object): and the value is json key in definition. """ openapi_types = { - "created_at": "datetime", "archived": "bool", "archived_at": "datetime", - "new": "bool", - "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "created_at": "datetime", "id": "str", + "new": "bool", "object_write_trace_id": "str", "properties": "dict[str, str]", + "properties_with_history": "dict[str, list[ValueWithTimestamp]]", "updated_at": "datetime", } attribute_map = { - "created_at": "createdAt", "archived": "archived", "archived_at": "archivedAt", - "new": "new", - "properties_with_history": "propertiesWithHistory", + "created_at": "createdAt", "id": "id", + "new": "new", "object_write_trace_id": "objectWriteTraceId", "properties": "properties", + "properties_with_history": "propertiesWithHistory", "updated_at": "updatedAt", } def __init__( self, - created_at=None, archived=None, archived_at=None, - new=None, - properties_with_history=None, + created_at=None, id=None, + new=None, object_write_trace_id=None, properties=None, + properties_with_history=None, updated_at=None, local_vars_configuration=None, ): # noqa: E501 @@ -77,58 +77,35 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._created_at = None self._archived = None self._archived_at = None - self._new = None - self._properties_with_history = None + self._created_at = None self._id = None + self._new = None self._object_write_trace_id = None self._properties = None + self._properties_with_history = None self._updated_at = None self.discriminator = None - self.created_at = created_at - if archived is not None: - self.archived = archived + self.archived = archived if archived_at is not None: self.archived_at = archived_at - self.new = new - if properties_with_history is not None: - self.properties_with_history = properties_with_history + self.created_at = created_at self.id = id + self.new = new if object_write_trace_id is not None: self.object_write_trace_id = object_write_trace_id self.properties = properties + if properties_with_history is not None: + self.properties_with_history = properties_with_history self.updated_at = updated_at - @property - def created_at(self): - """Gets the created_at of this SimplePublicUpsertObject. # noqa: E501 - - - :return: The created_at of this SimplePublicUpsertObject. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this SimplePublicUpsertObject. - - - :param created_at: The created_at of this SimplePublicUpsertObject. # noqa: E501 - :type created_at: datetime - """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - @property def archived(self): """Gets the archived of this SimplePublicUpsertObject. # noqa: E501 + Whether the object is archived. # noqa: E501 :return: The archived of this SimplePublicUpsertObject. # noqa: E501 :rtype: bool @@ -139,10 +116,13 @@ def archived(self): def archived(self, archived): """Sets the archived of this SimplePublicUpsertObject. + Whether the object is archived. # noqa: E501 :param archived: The archived of this SimplePublicUpsertObject. # noqa: E501 :type archived: bool """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 self._archived = archived @@ -150,6 +130,7 @@ def archived(self, archived): def archived_at(self): """Gets the archived_at of this SimplePublicUpsertObject. # noqa: E501 + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :return: The archived_at of this SimplePublicUpsertObject. # noqa: E501 :rtype: datetime @@ -160,6 +141,7 @@ def archived_at(self): def archived_at(self, archived_at): """Sets the archived_at of this SimplePublicUpsertObject. + The timestamp when the object was archived, in ISO 8601 format. # noqa: E501 :param archived_at: The archived_at of this SimplePublicUpsertObject. # noqa: E501 :type archived_at: datetime @@ -168,53 +150,35 @@ def archived_at(self, archived_at): self._archived_at = archived_at @property - def new(self): - """Gets the new of this SimplePublicUpsertObject. # noqa: E501 - - - :return: The new of this SimplePublicUpsertObject. # noqa: E501 - :rtype: bool - """ - return self._new - - @new.setter - def new(self, new): - """Sets the new of this SimplePublicUpsertObject. - - - :param new: The new of this SimplePublicUpsertObject. # noqa: E501 - :type new: bool - """ - if self.local_vars_configuration.client_side_validation and new is None: # noqa: E501 - raise ValueError("Invalid value for `new`, must not be `None`") # noqa: E501 - - self._new = new - - @property - def properties_with_history(self): - """Gets the properties_with_history of this SimplePublicUpsertObject. # noqa: E501 + def created_at(self): + """Gets the created_at of this SimplePublicUpsertObject. # noqa: E501 + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 - :return: The properties_with_history of this SimplePublicUpsertObject. # noqa: E501 - :rtype: dict[str, list[ValueWithTimestamp]] + :return: The created_at of this SimplePublicUpsertObject. # noqa: E501 + :rtype: datetime """ - return self._properties_with_history + return self._created_at - @properties_with_history.setter - def properties_with_history(self, properties_with_history): - """Sets the properties_with_history of this SimplePublicUpsertObject. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this SimplePublicUpsertObject. + The timestamp when the object was created, in ISO 8601 format. # noqa: E501 - :param properties_with_history: The properties_with_history of this SimplePublicUpsertObject. # noqa: E501 - :type properties_with_history: dict[str, list[ValueWithTimestamp]] + :param created_at: The created_at of this SimplePublicUpsertObject. # noqa: E501 + :type created_at: datetime """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - self._properties_with_history = properties_with_history + self._created_at = created_at @property def id(self): """Gets the id of this SimplePublicUpsertObject. # noqa: E501 + The unique ID of the object. # noqa: E501 :return: The id of this SimplePublicUpsertObject. # noqa: E501 :rtype: str @@ -225,6 +189,7 @@ def id(self): def id(self, id): """Sets the id of this SimplePublicUpsertObject. + The unique ID of the object. # noqa: E501 :param id: The id of this SimplePublicUpsertObject. # noqa: E501 :type id: str @@ -234,10 +199,36 @@ def id(self, id): self._id = id + @property + def new(self): + """Gets the new of this SimplePublicUpsertObject. # noqa: E501 + + Whether the property is new. # noqa: E501 + + :return: The new of this SimplePublicUpsertObject. # noqa: E501 + :rtype: bool + """ + return self._new + + @new.setter + def new(self, new): + """Sets the new of this SimplePublicUpsertObject. + + Whether the property is new. # noqa: E501 + + :param new: The new of this SimplePublicUpsertObject. # noqa: E501 + :type new: bool + """ + if self.local_vars_configuration.client_side_validation and new is None: # noqa: E501 + raise ValueError("Invalid value for `new`, must not be `None`") # noqa: E501 + + self._new = new + @property def object_write_trace_id(self): """Gets the object_write_trace_id of this SimplePublicUpsertObject. # noqa: E501 + An identifier used for tracing the write request for the object. # noqa: E501 :return: The object_write_trace_id of this SimplePublicUpsertObject. # noqa: E501 :rtype: str @@ -248,6 +239,7 @@ def object_write_trace_id(self): def object_write_trace_id(self, object_write_trace_id): """Sets the object_write_trace_id of this SimplePublicUpsertObject. + An identifier used for tracing the write request for the object. # noqa: E501 :param object_write_trace_id: The object_write_trace_id of this SimplePublicUpsertObject. # noqa: E501 :type object_write_trace_id: str @@ -259,6 +251,7 @@ def object_write_trace_id(self, object_write_trace_id): def properties(self): """Gets the properties of this SimplePublicUpsertObject. # noqa: E501 + Key value pairs representing the properties of the object. # noqa: E501 :return: The properties of this SimplePublicUpsertObject. # noqa: E501 :rtype: dict[str, str] @@ -269,6 +262,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicUpsertObject. + Key value pairs representing the properties of the object. # noqa: E501 :param properties: The properties of this SimplePublicUpsertObject. # noqa: E501 :type properties: dict[str, str] @@ -278,10 +272,34 @@ def properties(self, properties): self._properties = properties + @property + def properties_with_history(self): + """Gets the properties_with_history of this SimplePublicUpsertObject. # noqa: E501 + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :return: The properties_with_history of this SimplePublicUpsertObject. # noqa: E501 + :rtype: dict[str, list[ValueWithTimestamp]] + """ + return self._properties_with_history + + @properties_with_history.setter + def properties_with_history(self, properties_with_history): + """Sets the properties_with_history of this SimplePublicUpsertObject. + + Key-value pairs representing the properties of the object along with their history. # noqa: E501 + + :param properties_with_history: The properties_with_history of this SimplePublicUpsertObject. # noqa: E501 + :type properties_with_history: dict[str, list[ValueWithTimestamp]] + """ + + self._properties_with_history = properties_with_history + @property def updated_at(self): """Gets the updated_at of this SimplePublicUpsertObject. # noqa: E501 + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :return: The updated_at of this SimplePublicUpsertObject. # noqa: E501 :rtype: datetime @@ -292,6 +310,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this SimplePublicUpsertObject. + The timestamp when the object was last updated, in ISO 8601 format. # noqa: E501 :param updated_at: The updated_at of this SimplePublicUpsertObject. # noqa: E501 :type updated_at: datetime diff --git a/hubspot/crm/line_items/models/standard_error.py b/hubspot/crm/line_items/models/standard_error.py index 3bfe77ff..4e29e5b4 100644 --- a/hubspot/crm/line_items/models/standard_error.py +++ b/hubspot/crm/line_items/models/standard_error.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,70 +36,75 @@ class StandardError(object): and the value is json key in definition. """ openapi_types = { - "sub_category": "object", + "category": "str", "context": "dict[str, list[str]]", - "links": "dict[str, str]", + "errors": "list[ErrorDetail]", "id": "str", - "category": "str", + "links": "dict[str, str]", "message": "str", - "errors": "list[ErrorDetail]", "status": "str", + "sub_category": "object", } - attribute_map = {"sub_category": "subCategory", "context": "context", "links": "links", "id": "id", "category": "category", "message": "message", "errors": "errors", "status": "status"} + attribute_map = {"category": "category", "context": "context", "errors": "errors", "id": "id", "links": "links", "message": "message", "status": "status", "sub_category": "subCategory"} - def __init__(self, sub_category=None, context=None, links=None, id=None, category=None, message=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, category=None, context=None, errors=None, id=None, links=None, message=None, status=None, sub_category=None, local_vars_configuration=None): # noqa: E501 """StandardError - 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._sub_category = None + self._category = None self._context = None - self._links = None + self._errors = None self._id = None - self._category = None + self._links = None self._message = None - self._errors = None self._status = None + self._sub_category = None self.discriminator = None - if sub_category is not None: - self.sub_category = sub_category + self.category = category self.context = context - self.links = links + self.errors = errors if id is not None: self.id = id - self.category = category + self.links = links self.message = message - self.errors = errors self.status = status + if sub_category is not None: + self.sub_category = sub_category @property - def sub_category(self): - """Gets the sub_category of this StandardError. # noqa: E501 + def category(self): + """Gets the category of this StandardError. # noqa: E501 + The main category of the error. # noqa: E501 - :return: The sub_category of this StandardError. # noqa: E501 - :rtype: object + :return: The category of this StandardError. # noqa: E501 + :rtype: str """ - return self._sub_category + return self._category - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this StandardError. + @category.setter + def category(self, category): + """Sets the category of this StandardError. + The main category of the error. # noqa: E501 - :param sub_category: The sub_category of this StandardError. # noqa: E501 - :type sub_category: object + :param category: The category of this StandardError. # noqa: E501 + :type category: str """ + if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 - self._sub_category = sub_category + self._category = category @property def context(self): """Gets the context of this StandardError. # noqa: E501 + Additional context-specific information related to the error. # noqa: E501 :return: The context of this StandardError. # noqa: E501 :rtype: dict[str, list[str]] @@ -110,6 +115,7 @@ def context(self): def context(self, context): """Sets the context of this StandardError. + Additional context-specific information related to the error. # noqa: E501 :param context: The context of this StandardError. # noqa: E501 :type context: dict[str, list[str]] @@ -120,32 +126,35 @@ def context(self, context): self._context = context @property - def links(self): - """Gets the links of this StandardError. # noqa: E501 + def errors(self): + """Gets the errors of this StandardError. # noqa: E501 + The detailed error objects. # noqa: E501 - :return: The links of this StandardError. # noqa: E501 - :rtype: dict[str, str] + :return: The errors of this StandardError. # noqa: E501 + :rtype: list[ErrorDetail] """ - return self._links + return self._errors - @links.setter - def links(self, links): - """Sets the links of this StandardError. + @errors.setter + def errors(self, errors): + """Sets the errors of this StandardError. + The detailed error objects. # noqa: E501 - :param links: The links of this StandardError. # noqa: E501 - :type links: dict[str, str] + :param errors: The errors of this StandardError. # noqa: E501 + :type errors: list[ErrorDetail] """ - if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and errors is None: # noqa: E501 + raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 - self._links = links + self._errors = errors @property def id(self): """Gets the id of this StandardError. # noqa: E501 + A unique ID for the error instance. # noqa: E501 :return: The id of this StandardError. # noqa: E501 :rtype: str @@ -156,6 +165,7 @@ def id(self): def id(self, id): """Sets the id of this StandardError. + A unique ID for the error instance. # noqa: E501 :param id: The id of this StandardError. # noqa: E501 :type id: str @@ -164,32 +174,35 @@ def id(self, id): self._id = id @property - def category(self): - """Gets the category of this StandardError. # noqa: E501 + def links(self): + """Gets the links of this StandardError. # noqa: E501 + URLs linking to documentation or resources associated with the error. # noqa: E501 - :return: The category of this StandardError. # noqa: E501 - :rtype: str + :return: The links of this StandardError. # noqa: E501 + :rtype: dict[str, str] """ - return self._category + return self._links - @category.setter - def category(self, category): - """Sets the category of this StandardError. + @links.setter + def links(self, links): + """Sets the links of this StandardError. + URLs linking to documentation or resources associated with the error. # noqa: E501 - :param category: The category of this StandardError. # noqa: E501 - :type category: str + :param links: The links of this StandardError. # noqa: E501 + :type links: dict[str, str] """ - if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501 - raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 + raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 - self._category = category + self._links = links @property def message(self): """Gets the message of this StandardError. # noqa: E501 + A human-readable string describing the error and possible remediation steps. # noqa: E501 :return: The message of this StandardError. # noqa: E501 :rtype: str @@ -200,6 +213,7 @@ def message(self): def message(self, message): """Sets the message of this StandardError. + A human-readable string describing the error and possible remediation steps. # noqa: E501 :param message: The message of this StandardError. # noqa: E501 :type message: str @@ -209,33 +223,11 @@ def message(self, message): self._message = message - @property - def errors(self): - """Gets the errors of this StandardError. # noqa: E501 - - - :return: The errors of this StandardError. # noqa: E501 - :rtype: list[ErrorDetail] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this StandardError. - - - :param errors: The errors of this StandardError. # noqa: E501 - :type errors: list[ErrorDetail] - """ - if self.local_vars_configuration.client_side_validation and errors is None: # noqa: E501 - raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 - - self._errors = errors - @property def status(self): """Gets the status of this StandardError. # noqa: E501 + The HTTP status code associated with the error. # noqa: E501 :return: The status of this StandardError. # noqa: E501 :rtype: str @@ -246,6 +238,7 @@ def status(self): def status(self, status): """Sets the status of this StandardError. + The HTTP status code associated with the error. # noqa: E501 :param status: The status of this StandardError. # noqa: E501 :type status: str @@ -255,6 +248,29 @@ def status(self, status): self._status = status + @property + def sub_category(self): + """Gets the sub_category of this StandardError. # noqa: E501 + + A more specific error category within each main category. # noqa: E501 + + :return: The sub_category of this StandardError. # noqa: E501 + :rtype: object + """ + return self._sub_category + + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this StandardError. + + A more specific error category within each main category. # noqa: E501 + + :param sub_category: The sub_category of this StandardError. # noqa: E501 + :type sub_category: object + """ + + self._sub_category = sub_category + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/value_with_timestamp.py b/hubspot/crm/line_items/models/value_with_timestamp.py index 3d4a3818..26713e73 100644 --- a/hubspot/crm/line_items/models/value_with_timestamp.py +++ b/hubspot/crm/line_items/models/value_with_timestamp.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,38 +35,39 @@ class ValueWithTimestamp(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"source_id": "str", "source_type": "str", "source_label": "str", "updated_by_user_id": "int", "value": "str", "timestamp": "datetime"} + openapi_types = {"source_id": "str", "source_label": "str", "source_type": "str", "timestamp": "datetime", "updated_by_user_id": "int", "value": "str"} - attribute_map = {"source_id": "sourceId", "source_type": "sourceType", "source_label": "sourceLabel", "updated_by_user_id": "updatedByUserId", "value": "value", "timestamp": "timestamp"} + attribute_map = {"source_id": "sourceId", "source_label": "sourceLabel", "source_type": "sourceType", "timestamp": "timestamp", "updated_by_user_id": "updatedByUserId", "value": "value"} - def __init__(self, source_id=None, source_type=None, source_label=None, updated_by_user_id=None, value=None, timestamp=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, source_id=None, source_label=None, source_type=None, timestamp=None, updated_by_user_id=None, value=None, local_vars_configuration=None): # noqa: E501 """ValueWithTimestamp - 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._source_id = None - self._source_type = None self._source_label = None + self._source_type = None + self._timestamp = None self._updated_by_user_id = None self._value = None - self._timestamp = None self.discriminator = None if source_id is not None: self.source_id = source_id - self.source_type = source_type if source_label is not None: self.source_label = source_label + self.source_type = source_type + self.timestamp = timestamp if updated_by_user_id is not None: self.updated_by_user_id = updated_by_user_id self.value = value - self.timestamp = timestamp @property def source_id(self): """Gets the source_id of this ValueWithTimestamp. # noqa: E501 + The unique ID of the property. # noqa: E501 :return: The source_id of this ValueWithTimestamp. # noqa: E501 :rtype: str @@ -77,6 +78,7 @@ def source_id(self): def source_id(self, source_id): """Sets the source_id of this ValueWithTimestamp. + The unique ID of the property. # noqa: E501 :param source_id: The source_id of this ValueWithTimestamp. # noqa: E501 :type source_id: str @@ -84,10 +86,34 @@ def source_id(self, source_id): self._source_id = source_id + @property + def source_label(self): + """Gets the source_label of this ValueWithTimestamp. # noqa: E501 + + A human-readable label. # noqa: E501 + + :return: The source_label of this ValueWithTimestamp. # noqa: E501 + :rtype: str + """ + return self._source_label + + @source_label.setter + def source_label(self, source_label): + """Sets the source_label of this ValueWithTimestamp. + + A human-readable label. # noqa: E501 + + :param source_label: The source_label of this ValueWithTimestamp. # noqa: E501 + :type source_label: str + """ + + self._source_label = source_label + @property def source_type(self): """Gets the source_type of this ValueWithTimestamp. # noqa: E501 + The property type. # noqa: E501 :return: The source_type of this ValueWithTimestamp. # noqa: E501 :rtype: str @@ -98,6 +124,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this ValueWithTimestamp. + The property type. # noqa: E501 :param source_type: The source_type of this ValueWithTimestamp. # noqa: E501 :type source_type: str @@ -108,30 +135,35 @@ def source_type(self, source_type): self._source_type = source_type @property - def source_label(self): - """Gets the source_label of this ValueWithTimestamp. # noqa: E501 + def timestamp(self): + """Gets the timestamp of this ValueWithTimestamp. # noqa: E501 + The timestamp when the property was updated, in ISO 8601 format. # noqa: E501 - :return: The source_label of this ValueWithTimestamp. # noqa: E501 - :rtype: str + :return: The timestamp of this ValueWithTimestamp. # noqa: E501 + :rtype: datetime """ - return self._source_label + return self._timestamp - @source_label.setter - def source_label(self, source_label): - """Sets the source_label of this ValueWithTimestamp. + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ValueWithTimestamp. + The timestamp when the property was updated, in ISO 8601 format. # noqa: E501 - :param source_label: The source_label of this ValueWithTimestamp. # noqa: E501 - :type source_label: str + :param timestamp: The timestamp of this ValueWithTimestamp. # noqa: E501 + :type timestamp: datetime """ + if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501 + raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 - self._source_label = source_label + self._timestamp = timestamp @property def updated_by_user_id(self): """Gets the updated_by_user_id of this ValueWithTimestamp. # noqa: E501 + The ID of the user who last updated the property. # noqa: E501 :return: The updated_by_user_id of this ValueWithTimestamp. # noqa: E501 :rtype: int @@ -142,6 +174,7 @@ def updated_by_user_id(self): def updated_by_user_id(self, updated_by_user_id): """Sets the updated_by_user_id of this ValueWithTimestamp. + The ID of the user who last updated the property. # noqa: E501 :param updated_by_user_id: The updated_by_user_id of this ValueWithTimestamp. # noqa: E501 :type updated_by_user_id: int @@ -153,6 +186,7 @@ def updated_by_user_id(self, updated_by_user_id): def value(self): """Gets the value of this ValueWithTimestamp. # noqa: E501 + The property value. # noqa: E501 :return: The value of this ValueWithTimestamp. # noqa: E501 :rtype: str @@ -163,6 +197,7 @@ def value(self): def value(self, value): """Sets the value of this ValueWithTimestamp. + The property value. # noqa: E501 :param value: The value of this ValueWithTimestamp. # noqa: E501 :type value: str @@ -172,29 +207,6 @@ def value(self, value): self._value = value - @property - def timestamp(self): - """Gets the timestamp of this ValueWithTimestamp. # noqa: E501 - - - :return: The timestamp of this ValueWithTimestamp. # noqa: E501 - :rtype: datetime - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this ValueWithTimestamp. - - - :param timestamp: The timestamp of this ValueWithTimestamp. # noqa: E501 - :type timestamp: datetime - """ - if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501 - raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 - - self._timestamp = timestamp - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/rest.py b/hubspot/crm/line_items/rest.py index 37b07080..3a721370 100644 --- a/hubspot/crm/line_items/rest.py +++ b/hubspot/crm/line_items/rest.py @@ -3,7 +3,7 @@ """ Line Items - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech