diff --git a/hubspot/crm/contacts/__init__.py b/hubspot/crm/contacts/__init__.py index 7f0ea871..8171ef6f 100644 --- a/hubspot/crm/contacts/__init__.py +++ b/hubspot/crm/contacts/__init__.py @@ -5,7 +5,7 @@ """ Contacts - 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,12 +40,10 @@ from hubspot.crm.contacts.models.batch_input_simple_public_object_id import BatchInputSimplePublicObjectId from hubspot.crm.contacts.models.batch_read_input_simple_public_object_id import BatchReadInputSimplePublicObjectId from hubspot.crm.contacts.models.batch_response_simple_public_object import BatchResponseSimplePublicObject -from hubspot.crm.contacts.models.batch_response_simple_public_object_with_errors import BatchResponseSimplePublicObjectWithErrors from hubspot.crm.contacts.models.batch_response_simple_public_upsert_object import BatchResponseSimplePublicUpsertObject -from hubspot.crm.contacts.models.batch_response_simple_public_upsert_object_with_errors import BatchResponseSimplePublicUpsertObjectWithErrors from hubspot.crm.contacts.models.collection_response_associated_id import CollectionResponseAssociatedId from hubspot.crm.contacts.models.collection_response_simple_public_object_with_associations_forward_paging import CollectionResponseSimplePublicObjectWithAssociationsForwardPaging -from hubspot.crm.contacts.models.collection_response_with_total_simple_public_object_forward_paging import CollectionResponseWithTotalSimplePublicObjectForwardPaging +from hubspot.crm.contacts.models.collection_response_with_total_simple_public_object import CollectionResponseWithTotalSimplePublicObject from hubspot.crm.contacts.models.error import Error from hubspot.crm.contacts.models.error_detail import ErrorDetail from hubspot.crm.contacts.models.filter import Filter diff --git a/hubspot/crm/contacts/api/basic_api.py b/hubspot/crm/contacts/api/basic_api.py index 4e9a7e7f..944e6ea3 100644 --- a/hubspot/crm/contacts/api/basic_api.py +++ b/hubspot/crm/contacts/api/basic_api.py @@ -3,7 +3,7 @@ """ Contacts - 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 @@ -43,7 +43,7 @@ def archive(self, contact_id, **kwargs): # noqa: E501 >>> thread = api.archive(contact_id, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to delete. (required) + :param contact_id: (required) :type contact_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -73,7 +73,7 @@ def archive_with_http_info(self, contact_id, **kwargs): # noqa: E501 >>> thread = api.archive_with_http_info(contact_id, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to delete. (required) + :param contact_id: (required) :type contact_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -113,6 +113,8 @@ def archive_with_http_info(self, contact_id, **kwargs): # noqa: E501 if self.api_client.client_side_validation and local_var_params.get("contact_id") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `contact_id` when calling `archive`") # noqa: E501 + if self.api_client.client_side_validation and "contact_id" in local_var_params and not re.search(r".+", local_var_params["contact_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `contact_id` when calling `archive`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} @@ -292,7 +294,7 @@ def get_by_id(self, contact_id, **kwargs): # noqa: E501 >>> thread = api.get_by_id(contact_id, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to retrieve. (required) + :param contact_id: (required) :type contact_id: 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] @@ -332,7 +334,7 @@ def get_by_id_with_http_info(self, contact_id, **kwargs): # noqa: E501 >>> thread = api.get_by_id_with_http_info(contact_id, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to retrieve. (required) + :param contact_id: (required) :type contact_id: 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] @@ -382,6 +384,8 @@ def get_by_id_with_http_info(self, contact_id, **kwargs): # noqa: E501 if self.api_client.client_side_validation and local_var_params.get("contact_id") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `contact_id` when calling `get_by_id`") # noqa: E501 + if self.api_client.client_side_validation and "contact_id" in local_var_params and not re.search(r".+", local_var_params["contact_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `contact_id` when calling `get_by_id`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} @@ -848,14 +852,14 @@ def purge_with_http_info(self, public_gdpr_delete_input, **kwargs): # noqa: E50 def update(self, contact_id, simple_public_object_input, **kwargs): # noqa: E501 """Update a contact # noqa: E501 - Update a contact by ID (`contactId`) or unique property value (`idProperty`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. # noqa: E501 + Update an existing contact, identified by ID or email/unique property value. To identify a contact by ID, include the ID in the request URL path. To identify a contact by their email or other unique property, include the email/property value in the request URL path, and add the `idProperty` query parameter (`/crm/v3/objects/contacts/jon@website.com?idProperty=email`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update(contact_id, simple_public_object_input, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to update. (required) + :param contact_id: (required) :type contact_id: str :param simple_public_object_input: (required) :type simple_public_object_input: SimplePublicObjectInput @@ -882,14 +886,14 @@ def update(self, contact_id, simple_public_object_input, **kwargs): # noqa: E50 def update_with_http_info(self, contact_id, simple_public_object_input, **kwargs): # noqa: E501 """Update a contact # noqa: E501 - Update a contact by ID (`contactId`) or unique property value (`idProperty`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. # noqa: E501 + Update an existing contact, identified by ID or email/unique property value. To identify a contact by ID, include the ID in the request URL path. To identify a contact by their email or other unique property, include the email/property value in the request URL path, and add the `idProperty` query parameter (`/crm/v3/objects/contacts/jon@website.com?idProperty=email`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_with_http_info(contact_id, simple_public_object_input, async_req=True) >>> result = thread.get() - :param contact_id: The ID of the contact to update. (required) + :param contact_id: (required) :type contact_id: str :param simple_public_object_input: (required) :type simple_public_object_input: SimplePublicObjectInput @@ -936,6 +940,8 @@ def update_with_http_info(self, contact_id, simple_public_object_input, **kwargs 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 "contact_id" in local_var_params and not re.search(r".+", local_var_params["contact_id"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `contact_id` when calling `update`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/hubspot/crm/contacts/api/batch_api.py b/hubspot/crm/contacts/api/batch_api.py index cc382830..28628695 100644 --- a/hubspot/crm/contacts/api/batch_api.py +++ b/hubspot/crm/contacts/api/batch_api.py @@ -3,7 +3,7 @@ """ Contacts - 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 @@ -265,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( @@ -401,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( @@ -530,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( @@ -659,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/contacts/api/search_api.py b/hubspot/crm/contacts/api/search_api.py index da1a6c7c..ecdbd465 100644 --- a/hubspot/crm/contacts/api/search_api.py +++ b/hubspot/crm/contacts/api/search_api.py @@ -3,7 +3,7 @@ """ Contacts - 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 @@ -58,7 +58,7 @@ 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 @@ -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/contacts/api_client.py b/hubspot/crm/contacts/api_client.py index e1e65bc0..2c5a2a49 100644 --- a/hubspot/crm/contacts/api_client.py +++ b/hubspot/crm/contacts/api_client.py @@ -2,7 +2,7 @@ """ Contacts - 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/contacts/configuration.py b/hubspot/crm/contacts/configuration.py index 66502bc2..67bab369 100644 --- a/hubspot/crm/contacts/configuration.py +++ b/hubspot/crm/contacts/configuration.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/exceptions.py b/hubspot/crm/contacts/exceptions.py index 45b61b42..79aaa114 100644 --- a/hubspot/crm/contacts/exceptions.py +++ b/hubspot/crm/contacts/exceptions.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/__init__.py b/hubspot/crm/contacts/models/__init__.py index 4719bc99..dfd16038 100644 --- a/hubspot/crm/contacts/models/__init__.py +++ b/hubspot/crm/contacts/models/__init__.py @@ -4,7 +4,7 @@ """ Contacts - 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,12 +22,10 @@ from hubspot.crm.contacts.models.batch_input_simple_public_object_id import BatchInputSimplePublicObjectId from hubspot.crm.contacts.models.batch_read_input_simple_public_object_id import BatchReadInputSimplePublicObjectId from hubspot.crm.contacts.models.batch_response_simple_public_object import BatchResponseSimplePublicObject -from hubspot.crm.contacts.models.batch_response_simple_public_object_with_errors import BatchResponseSimplePublicObjectWithErrors from hubspot.crm.contacts.models.batch_response_simple_public_upsert_object import BatchResponseSimplePublicUpsertObject -from hubspot.crm.contacts.models.batch_response_simple_public_upsert_object_with_errors import BatchResponseSimplePublicUpsertObjectWithErrors from hubspot.crm.contacts.models.collection_response_associated_id import CollectionResponseAssociatedId from hubspot.crm.contacts.models.collection_response_simple_public_object_with_associations_forward_paging import CollectionResponseSimplePublicObjectWithAssociationsForwardPaging -from hubspot.crm.contacts.models.collection_response_with_total_simple_public_object_forward_paging import CollectionResponseWithTotalSimplePublicObjectForwardPaging +from hubspot.crm.contacts.models.collection_response_with_total_simple_public_object import CollectionResponseWithTotalSimplePublicObject from hubspot.crm.contacts.models.error import Error from hubspot.crm.contacts.models.error_detail import ErrorDetail from hubspot.crm.contacts.models.filter import Filter diff --git a/hubspot/crm/contacts/models/associated_id.py b/hubspot/crm/contacts/models/associated_id.py index 2ab35da1..3737e1f8 100644 --- a/hubspot/crm/contacts/models/associated_id.py +++ b/hubspot/crm/contacts/models/associated_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/association_spec.py b/hubspot/crm/contacts/models/association_spec.py index 5f9d10bf..b12e6cc3 100644 --- a/hubspot/crm/contacts/models/association_spec.py +++ b/hubspot/crm/contacts/models/association_spec.py @@ -3,7 +3,7 @@ """ Contacts - 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", "WORK"] # 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/contacts/models/batch_input_simple_public_object_batch_input.py b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input.py index 235698e2..1e6862dd 100644 --- a/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input.py +++ b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_input_simple_public_object_batch_input_for_create.py b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_for_create.py index b759ad2d..663de6e0 100644 --- a/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_for_create.py +++ b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_for_create.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_input_simple_public_object_batch_input_upsert.py b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.py index f3467c9a..0e0d3d9d 100644 --- a/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.py +++ b/hubspot/crm/contacts/models/batch_input_simple_public_object_batch_input_upsert.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_input_simple_public_object_id.py b/hubspot/crm/contacts/models/batch_input_simple_public_object_id.py index 050e02ea..03e81e2e 100644 --- a/hubspot/crm/contacts/models/batch_input_simple_public_object_id.py +++ b/hubspot/crm/contacts/models/batch_input_simple_public_object_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_read_input_simple_public_object_id.py b/hubspot/crm/contacts/models/batch_read_input_simple_public_object_id.py index 8eb73222..50b254af 100644 --- a/hubspot/crm/contacts/models/batch_read_input_simple_public_object_id.py +++ b/hubspot/crm/contacts/models/batch_read_input_simple_public_object_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_response_simple_public_object.py b/hubspot/crm/contacts/models/batch_response_simple_public_object.py index 8883fc96..a3319f41 100644 --- a/hubspot/crm/contacts/models/batch_response_simple_public_object.py +++ b/hubspot/crm/contacts/models/batch_response_simple_public_object.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_response_simple_public_object_with_errors.py b/hubspot/crm/contacts/models/batch_response_simple_public_object_with_errors.py deleted file mode 100644 index 15cf6b6a..00000000 --- a/hubspot/crm/contacts/models/batch_response_simple_public_object_with_errors.py +++ /dev/null @@ -1,314 +0,0 @@ -# coding: utf-8 - -""" - Contacts - - 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.contacts.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/contacts/models/batch_response_simple_public_upsert_object.py b/hubspot/crm/contacts/models/batch_response_simple_public_upsert_object.py index d13f59a3..cf3d96c2 100644 --- a/hubspot/crm/contacts/models/batch_response_simple_public_upsert_object.py +++ b/hubspot/crm/contacts/models/batch_response_simple_public_upsert_object.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/batch_response_simple_public_upsert_object_with_errors.py b/hubspot/crm/contacts/models/batch_response_simple_public_upsert_object_with_errors.py deleted file mode 100644 index 64c18403..00000000 --- a/hubspot/crm/contacts/models/batch_response_simple_public_upsert_object_with_errors.py +++ /dev/null @@ -1,314 +0,0 @@ -# coding: utf-8 - -""" - Contacts - - 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.contacts.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/contacts/models/collection_response_associated_id.py b/hubspot/crm/contacts/models/collection_response_associated_id.py index f2a09894..1f5e01c9 100644 --- a/hubspot/crm/contacts/models/collection_response_associated_id.py +++ b/hubspot/crm/contacts/models/collection_response_associated_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/collection_response_simple_public_object_with_associations_forward_paging.py b/hubspot/crm/contacts/models/collection_response_simple_public_object_with_associations_forward_paging.py index fa918774..83a0ee0b 100644 --- a/hubspot/crm/contacts/models/collection_response_simple_public_object_with_associations_forward_paging.py +++ b/hubspot/crm/contacts/models/collection_response_simple_public_object_with_associations_forward_paging.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/collection_response_with_total_simple_public_object_forward_paging.py b/hubspot/crm/contacts/models/collection_response_with_total_simple_public_object.py similarity index 67% rename from hubspot/crm/contacts/models/collection_response_with_total_simple_public_object_forward_paging.py rename to hubspot/crm/contacts/models/collection_response_with_total_simple_public_object.py index 2b2e95c7..302ff209 100644 --- a/hubspot/crm/contacts/models/collection_response_with_total_simple_public_object_forward_paging.py +++ b/hubspot/crm/contacts/models/collection_response_with_total_simple_public_object.py @@ -3,7 +3,7 @@ """ Contacts - 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.contacts.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/contacts/models/error.py b/hubspot/crm/contacts/models/error.py index a3aee649..4bd3cef7 100644 --- a/hubspot/crm/contacts/models/error.py +++ b/hubspot/crm/contacts/models/error.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/error_detail.py b/hubspot/crm/contacts/models/error_detail.py index 044991f3..002c061d 100644 --- a/hubspot/crm/contacts/models/error_detail.py +++ b/hubspot/crm/contacts/models/error_detail.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/filter.py b/hubspot/crm/contacts/models/filter.py index 6f0b0846..f2a469dc 100644 --- a/hubspot/crm/contacts/models/filter.py +++ b/hubspot/crm/contacts/models/filter.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/filter_group.py b/hubspot/crm/contacts/models/filter_group.py index 013c4d50..7e0ae5a7 100644 --- a/hubspot/crm/contacts/models/filter_group.py +++ b/hubspot/crm/contacts/models/filter_group.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/forward_paging.py b/hubspot/crm/contacts/models/forward_paging.py index f1654341..5af80101 100644 --- a/hubspot/crm/contacts/models/forward_paging.py +++ b/hubspot/crm/contacts/models/forward_paging.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/next_page.py b/hubspot/crm/contacts/models/next_page.py index 5685e2b2..fa3d8399 100644 --- a/hubspot/crm/contacts/models/next_page.py +++ b/hubspot/crm/contacts/models/next_page.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/paging.py b/hubspot/crm/contacts/models/paging.py index f2b8604c..9a490179 100644 --- a/hubspot/crm/contacts/models/paging.py +++ b/hubspot/crm/contacts/models/paging.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/previous_page.py b/hubspot/crm/contacts/models/previous_page.py index f004687c..210afb4a 100644 --- a/hubspot/crm/contacts/models/previous_page.py +++ b/hubspot/crm/contacts/models/previous_page.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/public_associations_for_object.py b/hubspot/crm/contacts/models/public_associations_for_object.py index 215e3f74..f56dc55f 100644 --- a/hubspot/crm/contacts/models/public_associations_for_object.py +++ b/hubspot/crm/contacts/models/public_associations_for_object.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/public_gdpr_delete_input.py b/hubspot/crm/contacts/models/public_gdpr_delete_input.py index 4a881f03..abd26000 100644 --- a/hubspot/crm/contacts/models/public_gdpr_delete_input.py +++ b/hubspot/crm/contacts/models/public_gdpr_delete_input.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/public_merge_input.py b/hubspot/crm/contacts/models/public_merge_input.py index 1c5f78c9..98f28a1c 100644 --- a/hubspot/crm/contacts/models/public_merge_input.py +++ b/hubspot/crm/contacts/models/public_merge_input.py @@ -3,7 +3,7 @@ """ Contacts - 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, object_id_to_merge=None, primary_object_id=None, local_vars_c def object_id_to_merge(self): """Gets the object_id_to_merge of this PublicMergeInput. # noqa: E501 + The object ID of the record that the merge will not set as the current value after the merge. # noqa: E501 :return: The object_id_to_merge of this PublicMergeInput. # noqa: E501 :rtype: str @@ -66,6 +67,7 @@ def object_id_to_merge(self): def object_id_to_merge(self, object_id_to_merge): """Sets the object_id_to_merge of this PublicMergeInput. + The object ID of the record that the merge will not set as the current value after the merge. # noqa: E501 :param object_id_to_merge: The object_id_to_merge of this PublicMergeInput. # noqa: E501 :type object_id_to_merge: str @@ -79,6 +81,7 @@ def object_id_to_merge(self, object_id_to_merge): def primary_object_id(self): """Gets the primary_object_id of this PublicMergeInput. # noqa: E501 + The object ID of the record that the merge will generally set as the current value after the merge. # noqa: E501 :return: The primary_object_id of this PublicMergeInput. # noqa: E501 :rtype: str @@ -89,6 +92,7 @@ def primary_object_id(self): def primary_object_id(self, primary_object_id): """Sets the primary_object_id of this PublicMergeInput. + The object ID of the record that the merge will generally set as the current value after the merge. # noqa: E501 :param primary_object_id: The primary_object_id of this PublicMergeInput. # noqa: E501 :type primary_object_id: str diff --git a/hubspot/crm/contacts/models/public_object_id.py b/hubspot/crm/contacts/models/public_object_id.py index 16235f66..4d78fc18 100644 --- a/hubspot/crm/contacts/models/public_object_id.py +++ b/hubspot/crm/contacts/models/public_object_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/public_object_search_request.py b/hubspot/crm/contacts/models/public_object_search_request.py index 52c93dbc..b8845abd 100644 --- a/hubspot/crm/contacts/models/public_object_search_request.py +++ b/hubspot/crm/contacts/models/public_object_search_request.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object.py b/hubspot/crm/contacts/models/simple_public_object.py index 82158997..c2102d53 100644 --- a/hubspot/crm/contacts/models/simple_public_object.py +++ b/hubspot/crm/contacts/models/simple_public_object.py @@ -3,7 +3,7 @@ """ Contacts - 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,77 @@ 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", + "url": "str", } 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", + "url": "url", } 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, + url=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._url = 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 + if url is not None: + self.url = url @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 +117,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 +131,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 +142,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 +151,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 +190,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 +204,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 +215,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 +227,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 +238,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 +248,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 +286,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 @@ -264,6 +296,29 @@ def updated_at(self, updated_at): self._updated_at = updated_at + @property + def url(self): + """Gets the url of this SimplePublicObject. # noqa: E501 + + The URL associated with the object. # noqa: E501 + + :return: The url of this SimplePublicObject. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this SimplePublicObject. + + The URL associated with the object. # noqa: E501 + + :param url: The url of this SimplePublicObject. # noqa: E501 + :type url: str + """ + + self._url = url + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/contacts/models/simple_public_object_batch_input.py b/hubspot/crm/contacts/models/simple_public_object_batch_input.py index 104ffca8..f9080de3 100644 --- a/hubspot/crm/contacts/models/simple_public_object_batch_input.py +++ b/hubspot/crm/contacts/models/simple_public_object_batch_input.py @@ -3,7 +3,7 @@ """ Contacts - 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 of the contact to update. 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 of the contact to update. 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 of the contact to update. 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 of the contact to update. 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/contacts/models/simple_public_object_batch_input_for_create.py b/hubspot/crm/contacts/models/simple_public_object_batch_input_for_create.py index 69293b35..131605a2 100644 --- a/hubspot/crm/contacts/models/simple_public_object_batch_input_for_create.py +++ b/hubspot/crm/contacts/models/simple_public_object_batch_input_for_create.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object_batch_input_upsert.py b/hubspot/crm/contacts/models/simple_public_object_batch_input_upsert.py index 802adc7a..be4950fe 100644 --- a/hubspot/crm/contacts/models/simple_public_object_batch_input_upsert.py +++ b/hubspot/crm/contacts/models/simple_public_object_batch_input_upsert.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object_id.py b/hubspot/crm/contacts/models/simple_public_object_id.py index 633de6db..836f83ff 100644 --- a/hubspot/crm/contacts/models/simple_public_object_id.py +++ b/hubspot/crm/contacts/models/simple_public_object_id.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object_input.py b/hubspot/crm/contacts/models/simple_public_object_input.py index 86b72138..d0830a4d 100644 --- a/hubspot/crm/contacts/models/simple_public_object_input.py +++ b/hubspot/crm/contacts/models/simple_public_object_input.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object_input_for_create.py b/hubspot/crm/contacts/models/simple_public_object_input_for_create.py index ace1dcb1..c1307ed1 100644 --- a/hubspot/crm/contacts/models/simple_public_object_input_for_create.py +++ b/hubspot/crm/contacts/models/simple_public_object_input_for_create.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/simple_public_object_with_associations.py b/hubspot/crm/contacts/models/simple_public_object_with_associations.py index cfea103b..f6fdba91 100644 --- a/hubspot/crm/contacts/models/simple_public_object_with_associations.py +++ b/hubspot/crm/contacts/models/simple_public_object_with_associations.py @@ -3,7 +3,7 @@ """ Contacts - 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,40 +36,43 @@ 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", + "url": "str", } 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", + "url": "url", } 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, + url=None, local_vars_configuration=None, ): # noqa: E501 """SimplePublicObjectWithAssociations - a model defined in OpenAPI""" # noqa: E501 @@ -77,81 +80,39 @@ 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._url = 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 + if url is not None: + self.url = url @property def archived(self): """Gets the archived of this SimplePublicObjectWithAssociations. # noqa: E501 - # noqa: E501 + Whether the object is archived. # noqa: E501 :return: The archived of this SimplePublicObjectWithAssociations. # noqa: E501 :rtype: bool @@ -162,11 +123,13 @@ def archived(self): def archived(self, archived): """Sets the archived of this SimplePublicObjectWithAssociations. - # noqa: E501 + 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 @@ -174,7 +137,7 @@ def archived(self, archived): def archived_at(self): """Gets the archived_at of this SimplePublicObjectWithAssociations. # noqa: E501 - # 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 @@ -185,7 +148,7 @@ def archived_at(self): def archived_at(self, archived_at): """Sets the archived_at of this SimplePublicObjectWithAssociations. - # noqa: E501 + 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 @@ -194,30 +157,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 @@ -228,6 +219,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 @@ -241,6 +233,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 @@ -251,6 +244,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 @@ -262,7 +256,7 @@ def object_write_trace_id(self, object_write_trace_id): def properties(self): """Gets the properties of this SimplePublicObjectWithAssociations. # noqa: E501 - # 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] @@ -273,7 +267,7 @@ def properties(self): def properties(self, properties): """Sets the properties of this SimplePublicObjectWithAssociations. - # noqa: E501 + 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] @@ -283,10 +277,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 @@ -297,6 +315,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 @@ -306,6 +325,29 @@ def updated_at(self, updated_at): self._updated_at = updated_at + @property + def url(self): + """Gets the url of this SimplePublicObjectWithAssociations. # noqa: E501 + + The URL on the API that provide direct navigation to the corresponding UI pages for the connectors. # noqa: E501 + + :return: The url of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this SimplePublicObjectWithAssociations. + + The URL on the API that provide direct navigation to the corresponding UI pages for the connectors. # noqa: E501 + + :param url: The url of this SimplePublicObjectWithAssociations. # noqa: E501 + :type url: str + """ + + self._url = url + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/contacts/models/simple_public_upsert_object.py b/hubspot/crm/contacts/models/simple_public_upsert_object.py index aa7e5ee5..cc88c871 100644 --- a/hubspot/crm/contacts/models/simple_public_upsert_object.py +++ b/hubspot/crm/contacts/models/simple_public_upsert_object.py @@ -3,7 +3,7 @@ """ Contacts - 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,40 +36,43 @@ 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", + "url": "str", } 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", + "url": "url", } 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, + url=None, local_vars_configuration=None, ): # noqa: E501 """SimplePublicUpsertObject - a model defined in OpenAPI""" # noqa: E501 @@ -77,58 +80,38 @@ 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._url = 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 + if url is not None: + self.url = url @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 +122,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 +136,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 +147,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 +156,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 +195,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 +205,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 for tracing the creation request. # noqa: E501 :return: The object_write_trace_id of this SimplePublicUpsertObject. # noqa: E501 :rtype: str @@ -248,6 +245,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 for tracing the creation request. # 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 +257,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 +268,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 +278,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 +316,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 @@ -301,6 +326,29 @@ def updated_at(self, updated_at): self._updated_at = updated_at + @property + def url(self): + """Gets the url of this SimplePublicUpsertObject. # noqa: E501 + + The URL associated with the object. # noqa: E501 + + :return: The url of this SimplePublicUpsertObject. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this SimplePublicUpsertObject. + + The URL associated with the object. # noqa: E501 + + :param url: The url of this SimplePublicUpsertObject. # noqa: E501 + :type url: str + """ + + self._url = url + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/contacts/models/standard_error.py b/hubspot/crm/contacts/models/standard_error.py index 2ca9935a..716d495f 100644 --- a/hubspot/crm/contacts/models/standard_error.py +++ b/hubspot/crm/contacts/models/standard_error.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/models/value_with_timestamp.py b/hubspot/crm/contacts/models/value_with_timestamp.py index 1b1731ed..3e35aed9 100644 --- a/hubspot/crm/contacts/models/value_with_timestamp.py +++ b/hubspot/crm/contacts/models/value_with_timestamp.py @@ -3,7 +3,7 @@ """ Contacts - 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/contacts/rest.py b/hubspot/crm/contacts/rest.py index 7d9fefe1..02932198 100644 --- a/hubspot/crm/contacts/rest.py +++ b/hubspot/crm/contacts/rest.py @@ -3,7 +3,7 @@ """ Contacts - 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