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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions hubspot/crm/contacts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
24 changes: 15 additions & 9 deletions hubspot/crm/contacts/api/basic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 = {}
Expand Down
8 changes: 2 additions & 6 deletions hubspot/crm/contacts/api/batch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions hubspot/crm/contacts/api/search_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion hubspot/crm/contacts/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading