From 664c46d3c5cdc54d227dc9a439c0b9261533c8b6 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:28:48 +0300 Subject: [PATCH 01/12] Codegen: CMS Blogs Authors and Tags --- hubspot/cms/blogs/authors/models/next_page.py | 8 ++++---- hubspot/cms/blogs/tags/models/next_page.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hubspot/cms/blogs/authors/models/next_page.py b/hubspot/cms/blogs/authors/models/next_page.py index de144ef4..d8cab0f3 100644 --- a/hubspot/cms/blogs/authors/models/next_page.py +++ b/hubspot/cms/blogs/authors/models/next_page.py @@ -57,7 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq def link(self): """Gets the link of this NextPage. # noqa: E501 - # 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 @@ -68,7 +68,7 @@ def link(self): def link(self, link): """Sets the link of this NextPage. - # noqa: E501 + 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 @@ -80,7 +80,7 @@ def link(self, link): def after(self): """Gets the after of this NextPage. # noqa: E501 - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :return: The after of this NextPage. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def after(self): def after(self, after): """Sets the after of this NextPage. - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :param after: The after of this NextPage. # noqa: E501 :type after: str diff --git a/hubspot/cms/blogs/tags/models/next_page.py b/hubspot/cms/blogs/tags/models/next_page.py index 890b7bab..208d5d59 100644 --- a/hubspot/cms/blogs/tags/models/next_page.py +++ b/hubspot/cms/blogs/tags/models/next_page.py @@ -57,7 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq def link(self): """Gets the link of this NextPage. # noqa: E501 - # 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 @@ -68,7 +68,7 @@ def link(self): def link(self, link): """Sets the link of this NextPage. - # noqa: E501 + 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 @@ -80,7 +80,7 @@ def link(self, link): def after(self): """Gets the after of this NextPage. # noqa: E501 - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :return: The after of this NextPage. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def after(self): def after(self, after): """Sets the after of this NextPage. - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :param after: The after of this NextPage. # noqa: E501 :type after: str From 1b3b445bb4283347b679e93b55cd5496dddec79b Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:32:37 +0300 Subject: [PATCH 02/12] Codegen: Automation Actions --- .../automation/actions/api/callbacks_api.py | 16 ++- .../automation/actions/api/definitions_api.py | 62 +++++----- .../automation/actions/api/functions_api.py | 106 ++++++++++-------- .../automation/actions/api/revisions_api.py | 32 +++--- .../automation/actions/models/next_page.py | 4 + hubspot/automation/actions/models/option.py | 12 ++ ...finition_input_field_dependencies_inner.py | 10 +- 7 files changed, 149 insertions(+), 93 deletions(-) diff --git a/hubspot/automation/actions/api/callbacks_api.py b/hubspot/automation/actions/api/callbacks_api.py index ed48c890..ba95b36e 100644 --- a/hubspot/automation/actions/api/callbacks_api.py +++ b/hubspot/automation/actions/api/callbacks_api.py @@ -34,15 +34,16 @@ def __init__(self, api_client=None): self.api_client = api_client def complete(self, callback_id, callback_completion_request, **kwargs): # noqa: E501 - """Completes a single callback # noqa: E501 + """Completes a callback # noqa: E501 + Complete a specific blocked action execution by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.complete(callback_id, callback_completion_request, async_req=True) >>> result = thread.get() - :param callback_id: (required) + :param callback_id: The ID of the action execution. (required) :type callback_id: str :param callback_completion_request: (required) :type callback_completion_request: CallbackCompletionRequest @@ -65,15 +66,16 @@ def complete(self, callback_id, callback_completion_request, **kwargs): # noqa: return self.complete_with_http_info(callback_id, callback_completion_request, **kwargs) # noqa: E501 def complete_with_http_info(self, callback_id, callback_completion_request, **kwargs): # noqa: E501 - """Completes a single callback # noqa: E501 + """Completes a callback # noqa: E501 + Complete a specific blocked action execution by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.complete_with_http_info(callback_id, callback_completion_request, async_req=True) >>> result = thread.get() - :param callback_id: (required) + :param callback_id: The ID of the action execution. (required) :type callback_id: str :param callback_completion_request: (required) :type callback_completion_request: CallbackCompletionRequest @@ -167,8 +169,9 @@ def complete_with_http_info(self, callback_id, callback_completion_request, **kw ) def complete_batch(self, batch_input_callback_completion_batch_request, **kwargs): # noqa: E501 - """Completes a batch of callbacks # noqa: E501 + """Complete a batch of callbacks # noqa: E501 + Complete a batch of blocked action executions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -196,8 +199,9 @@ def complete_batch(self, batch_input_callback_completion_batch_request, **kwargs return self.complete_batch_with_http_info(batch_input_callback_completion_batch_request, **kwargs) # noqa: E501 def complete_batch_with_http_info(self, batch_input_callback_completion_batch_request, **kwargs): # noqa: E501 - """Completes a batch of callbacks # noqa: E501 + """Complete a batch of callbacks # noqa: E501 + Complete a batch of blocked action executions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/hubspot/automation/actions/api/definitions_api.py b/hubspot/automation/actions/api/definitions_api.py index 8b33c650..785d5c55 100644 --- a/hubspot/automation/actions/api/definitions_api.py +++ b/hubspot/automation/actions/api/definitions_api.py @@ -34,17 +34,18 @@ def __init__(self, api_client=None): self.api_client = api_client def archive(self, definition_id, app_id, **kwargs): # noqa: E501 - """Archive an extension definition # noqa: E501 + """Delete an action definition # noqa: E501 + Delete an action definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -65,17 +66,18 @@ def archive(self, definition_id, app_id, **kwargs): # noqa: E501 return self.archive_with_http_info(definition_id, app_id, **kwargs) # noqa: E501 def archive_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E501 - """Archive an extension definition # noqa: E501 + """Delete an action definition # noqa: E501 + Delete an action definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_with_http_info(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -162,15 +164,16 @@ def archive_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E501 ) def create(self, app_id, public_action_definition_egg, **kwargs): # noqa: E501 - """Create a new extension definition # noqa: E501 + """Create a new custom action definition # noqa: E501 + Create a new custom workflow action. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create(app_id, public_action_definition_egg, async_req=True) >>> result = thread.get() - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param public_action_definition_egg: (required) :type public_action_definition_egg: PublicActionDefinitionEgg @@ -193,15 +196,16 @@ def create(self, app_id, public_action_definition_egg, **kwargs): # noqa: E501 return self.create_with_http_info(app_id, public_action_definition_egg, **kwargs) # noqa: E501 def create_with_http_info(self, app_id, public_action_definition_egg, **kwargs): # noqa: E501 - """Create a new extension definition # noqa: E501 + """Create a new custom action definition # noqa: E501 + Create a new custom workflow action. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_with_http_info(app_id, public_action_definition_egg, async_req=True) >>> result = thread.get() - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param public_action_definition_egg: (required) :type public_action_definition_egg: PublicActionDefinitionEgg @@ -297,17 +301,18 @@ def create_with_http_info(self, app_id, public_action_definition_egg, **kwargs): ) def get_by_id(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get extension definition by Id # noqa: E501 + """Retrieve a custom action definition # noqa: E501 + Retrieve a custom workflow action definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param archived: Whether to return only results that have been archived. :type archived: bool @@ -330,17 +335,18 @@ def get_by_id(self, definition_id, app_id, **kwargs): # noqa: E501 return self.get_by_id_with_http_info(definition_id, app_id, **kwargs) # noqa: E501 def get_by_id_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get extension definition by Id # noqa: E501 + """Retrieve a custom action definition # noqa: E501 + Retrieve a custom workflow action definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id_with_http_info(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param archived: Whether to return only results that have been archived. :type archived: bool @@ -433,15 +439,16 @@ def get_by_id_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E5 ) def get_page(self, app_id, **kwargs): # noqa: E501 - """Get paged extension definitions # noqa: E501 + """Retrieve custom action definitions # noqa: E501 + Retrieve custom workflow action definitions by app ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page(app_id, async_req=True) >>> result = thread.get() - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param limit: The maximum number of results to display per page. :type limit: int @@ -468,15 +475,16 @@ def get_page(self, app_id, **kwargs): # noqa: E501 return self.get_page_with_http_info(app_id, **kwargs) # noqa: E501 def get_page_with_http_info(self, app_id, **kwargs): # noqa: E501 - """Get paged extension definitions # noqa: E501 + """Retrieve custom action definitions # noqa: E501 + Retrieve custom workflow action definitions by app ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page_with_http_info(app_id, async_req=True) >>> result = thread.get() - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param limit: The maximum number of results to display per page. :type limit: int @@ -572,17 +580,18 @@ def get_page_with_http_info(self, app_id, **kwargs): # noqa: E501 ) def update(self, definition_id, app_id, public_action_definition_patch, **kwargs): # noqa: E501 - """Patch an existing extension definition # noqa: E501 + """Update an existing action definition # noqa: E501 + Update an existing action definition by ID. # 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(definition_id, app_id, public_action_definition_patch, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param public_action_definition_patch: (required) :type public_action_definition_patch: PublicActionDefinitionPatch @@ -605,17 +614,18 @@ def update(self, definition_id, app_id, public_action_definition_patch, **kwargs return self.update_with_http_info(definition_id, app_id, public_action_definition_patch, **kwargs) # noqa: E501 def update_with_http_info(self, definition_id, app_id, public_action_definition_patch, **kwargs): # noqa: E501 - """Patch an existing extension definition # noqa: E501 + """Update an existing action definition # noqa: E501 + Update an existing action definition by ID. # 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(definition_id, app_id, public_action_definition_patch, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the custom action definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param public_action_definition_patch: (required) :type public_action_definition_patch: PublicActionDefinitionPatch diff --git a/hubspot/automation/actions/api/functions_api.py b/hubspot/automation/actions/api/functions_api.py index 3cb62e64..d1133861 100644 --- a/hubspot/automation/actions/api/functions_api.py +++ b/hubspot/automation/actions/api/functions_api.py @@ -36,6 +36,7 @@ def __init__(self, api_client=None): def archive(self, definition_id, function_type, function_id, app_id, **kwargs): # noqa: E501 """Archive a function for a definition # noqa: E501 + Archive a function for a specific definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -71,6 +72,7 @@ def archive(self, definition_id, function_type, function_id, app_id, **kwargs): def archive_with_http_info(self, definition_id, function_type, function_id, app_id, **kwargs): # noqa: E501 """Archive a function for a definition # noqa: E501 + Archive a function for a specific definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -182,17 +184,18 @@ def archive_with_http_info(self, definition_id, function_type, function_id, app_ def archive_by_function_type(self, definition_id, function_type, app_id, **kwargs): # noqa: E501 """Delete a function for a definition # noqa: E501 + Delete a function within a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_by_function_type(definition_id, function_type, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -215,17 +218,18 @@ def archive_by_function_type(self, definition_id, function_type, app_id, **kwarg def archive_by_function_type_with_http_info(self, definition_id, function_type, app_id, **kwargs): # noqa: E501 """Delete a function for a definition # noqa: E501 + Delete a function within a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_by_function_type_with_http_info(definition_id, function_type, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -317,21 +321,22 @@ def archive_by_function_type_with_http_info(self, definition_id, function_type, ) def create_or_replace(self, definition_id, function_type, function_id, app_id, body, **kwargs): # noqa: E501 - """Insert a function for a definition # noqa: E501 + """Update a function for a definition # noqa: E501 + Update a function for a given definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_or_replace(definition_id, function_type, function_id, app_id, body, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param function_id: (required) + :param function_id: The ID of the function. (required) :type function_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param body: (required) :type body: str @@ -354,21 +359,22 @@ def create_or_replace(self, definition_id, function_type, function_id, app_id, b return self.create_or_replace_with_http_info(definition_id, function_type, function_id, app_id, body, **kwargs) # noqa: E501 def create_or_replace_with_http_info(self, definition_id, function_type, function_id, app_id, body, **kwargs): # noqa: E501 - """Insert a function for a definition # noqa: E501 + """Update a function for a definition # noqa: E501 + Update a function for a given definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_or_replace_with_http_info(definition_id, function_type, function_id, app_id, body, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param function_id: (required) + :param function_id: The ID of the function. (required) :type function_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param body: (required) :type body: str @@ -481,17 +487,18 @@ def create_or_replace_with_http_info(self, definition_id, function_type, functio def create_or_replace_by_function_type(self, definition_id, function_type, app_id, body, **kwargs): # noqa: E501 """Insert a function for a definition # noqa: E501 + Add a function for a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_or_replace_by_function_type(definition_id, function_type, app_id, body, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param body: (required) :type body: str @@ -516,17 +523,18 @@ def create_or_replace_by_function_type(self, definition_id, function_type, app_i def create_or_replace_by_function_type_with_http_info(self, definition_id, function_type, app_id, body, **kwargs): # noqa: E501 """Insert a function for a definition # noqa: E501 + Add a function for a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_or_replace_by_function_type_with_http_info(definition_id, function_type, app_id, body, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param body: (required) :type body: str @@ -632,19 +640,20 @@ def create_or_replace_by_function_type_with_http_info(self, definition_id, funct ) def get_by_function_type(self, definition_id, function_type, app_id, **kwargs): # noqa: E501 - """Get all functions by a type for a given definition # noqa: E501 + """Retrieve functions by a type for a given definition # noqa: E501 + Retrieve functions of a specific type for a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_function_type(definition_id, function_type, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -665,19 +674,20 @@ def get_by_function_type(self, definition_id, function_type, app_id, **kwargs): return self.get_by_function_type_with_http_info(definition_id, function_type, app_id, **kwargs) # noqa: E501 def get_by_function_type_with_http_info(self, definition_id, function_type, app_id, **kwargs): # noqa: E501 - """Get all functions by a type for a given definition # noqa: E501 + """Retrieve functions by a type for a given definition # noqa: E501 + Retrieve functions of a specific type for a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_function_type_with_http_info(definition_id, function_type, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -771,21 +781,22 @@ def get_by_function_type_with_http_info(self, definition_id, function_type, app_ ) def get_by_id(self, definition_id, function_type, function_id, app_id, **kwargs): # noqa: E501 - """Get a function for a given definition # noqa: E501 + """Retrieve a function from a given definition # noqa: E501 + Retrieve a specific function from a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id(definition_id, function_type, function_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param function_id: (required) + :param function_id: The ID of the function. (required) :type function_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -806,21 +817,22 @@ def get_by_id(self, definition_id, function_type, function_id, app_id, **kwargs) return self.get_by_id_with_http_info(definition_id, function_type, function_id, app_id, **kwargs) # noqa: E501 def get_by_id_with_http_info(self, definition_id, function_type, function_id, app_id, **kwargs): # noqa: E501 - """Get a function for a given definition # noqa: E501 + """Retrieve a function from a given definition # noqa: E501 + Retrieve a specific function from a given definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id_with_http_info(definition_id, function_type, function_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param function_type: (required) + :param function_type: The type of function. Can be `PRE_ACTION_EXECUTION`, `PRE_FETCH_OPTIONS`, `POST_FETCH_OPTIONS`, `POST_ACTION_EXECUTION`. (required) :type function_type: str - :param function_id: (required) + :param function_id: The ID of the function. (required) :type function_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -919,17 +931,18 @@ def get_by_id_with_http_info(self, definition_id, function_type, function_id, ap ) def get_page(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get all functions for a given definition # noqa: E501 + """Retrieve functions for a given definition # noqa: E501 + Retrieve all functions included in a definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -950,17 +963,18 @@ def get_page(self, definition_id, app_id, **kwargs): # noqa: E501 return self.get_page_with_http_info(definition_id, app_id, **kwargs) # noqa: E501 def get_page_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get all functions for a given definition # noqa: E501 + """Retrieve functions for a given definition # noqa: E501 + Retrieve all functions included in a definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page_with_http_info(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional diff --git a/hubspot/automation/actions/api/revisions_api.py b/hubspot/automation/actions/api/revisions_api.py index 62fd30bf..2f5cc2c1 100644 --- a/hubspot/automation/actions/api/revisions_api.py +++ b/hubspot/automation/actions/api/revisions_api.py @@ -34,19 +34,20 @@ def __init__(self, api_client=None): self.api_client = api_client def get_by_id(self, definition_id, revision_id, app_id, **kwargs): # noqa: E501 - """Gets a revision for a given definition by revision id # noqa: E501 + """Retrieve a specific revision of a definition # noqa: E501 + Retrieve a specific revision of a definition by revision ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id(definition_id, revision_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param revision_id: (required) + :param revision_id: The ID of the revision. (required) :type revision_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -67,19 +68,20 @@ def get_by_id(self, definition_id, revision_id, app_id, **kwargs): # noqa: E501 return self.get_by_id_with_http_info(definition_id, revision_id, app_id, **kwargs) # noqa: E501 def get_by_id_with_http_info(self, definition_id, revision_id, app_id, **kwargs): # noqa: E501 - """Gets a revision for a given definition by revision id # noqa: E501 + """Retrieve a specific revision of a definition # noqa: E501 + Retrieve a specific revision of a definition by revision ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_by_id_with_http_info(definition_id, revision_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param revision_id: (required) + :param revision_id: The ID of the revision. (required) :type revision_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -173,17 +175,18 @@ def get_by_id_with_http_info(self, definition_id, revision_id, app_id, **kwargs) ) def get_page(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get all revisions for a given definition # noqa: E501 + """Retrieve revisions for a given definition # noqa: E501 + Retrieve the versions of a definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param limit: The maximum number of results to display per page. :type limit: int @@ -208,17 +211,18 @@ def get_page(self, definition_id, app_id, **kwargs): # noqa: E501 return self.get_page_with_http_info(definition_id, app_id, **kwargs) # noqa: E501 def get_page_with_http_info(self, definition_id, app_id, **kwargs): # noqa: E501 - """Get all revisions for a given definition # noqa: E501 + """Retrieve revisions for a given definition # noqa: E501 + Retrieve the versions of a definition by ID. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_page_with_http_info(definition_id, app_id, async_req=True) >>> result = thread.get() - :param definition_id: (required) + :param definition_id: The ID of the definition. (required) :type definition_id: str - :param app_id: (required) + :param app_id: The ID of the app. (required) :type app_id: int :param limit: The maximum number of results to display per page. :type limit: int diff --git a/hubspot/automation/actions/models/next_page.py b/hubspot/automation/actions/models/next_page.py index 4c401d21..bc3e24a5 100644 --- a/hubspot/automation/actions/models/next_page.py +++ b/hubspot/automation/actions/models/next_page.py @@ -57,6 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq 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 @@ -67,6 +68,7 @@ def link(self): 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 @@ -78,6 +80,7 @@ def link(self, link): 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 +91,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 diff --git a/hubspot/automation/actions/models/option.py b/hubspot/automation/actions/models/option.py index 514e0c00..a317a55a 100644 --- a/hubspot/automation/actions/models/option.py +++ b/hubspot/automation/actions/models/option.py @@ -66,6 +66,7 @@ def __init__(self, hidden=None, display_order=None, double_data=None, descriptio def hidden(self): """Gets the hidden of this Option. # noqa: E501 + Whether the option is displayed in HubSpot's UI. # noqa: E501 :return: The hidden of this Option. # noqa: E501 :rtype: bool @@ -76,6 +77,7 @@ def hidden(self): def hidden(self, hidden): """Sets the hidden of this Option. + Whether the option is displayed in HubSpot's UI. # noqa: E501 :param hidden: The hidden of this Option. # noqa: E501 :type hidden: bool @@ -89,6 +91,7 @@ def hidden(self, hidden): def display_order(self): """Gets the display_order of this Option. # noqa: E501 + The position of the item relative to others in the list. # noqa: E501 :return: The display_order of this Option. # noqa: E501 :rtype: int @@ -99,6 +102,7 @@ def display_order(self): def display_order(self, display_order): """Sets the display_order of this Option. + The position of the item relative to others in the list. # noqa: E501 :param display_order: The display_order of this Option. # noqa: E501 :type display_order: int @@ -135,6 +139,7 @@ def double_data(self, double_data): def description(self): """Gets the description of this Option. # noqa: E501 + A description of the option. # noqa: E501 :return: The description of this Option. # noqa: E501 :rtype: str @@ -145,6 +150,7 @@ def description(self): def description(self, description): """Sets the description of this Option. + A description of the option. # noqa: E501 :param description: The description of this Option. # noqa: E501 :type description: str @@ -158,6 +164,7 @@ def description(self, description): def read_only(self): """Gets the read_only of this Option. # noqa: E501 + Whether the option is read-only. # noqa: E501 :return: The read_only of this Option. # noqa: E501 :rtype: bool @@ -168,6 +175,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this Option. + Whether the option is read-only. # noqa: E501 :param read_only: The read_only of this Option. # noqa: E501 :type read_only: bool @@ -181,6 +189,7 @@ def read_only(self, read_only): def label(self): """Gets the label of this Option. # noqa: E501 + A user-friendly label that identifies the option. # noqa: E501 :return: The label of this Option. # noqa: E501 :rtype: str @@ -191,6 +200,7 @@ def label(self): def label(self, label): """Sets the label of this Option. + A user-friendly label that identifies the option. # noqa: E501 :param label: The label of this Option. # noqa: E501 :type label: str @@ -204,6 +214,7 @@ def label(self, label): def value(self): """Gets the value of this Option. # noqa: E501 + The actual value of the option. # noqa: E501 :return: The value of this Option. # noqa: E501 :rtype: str @@ -214,6 +225,7 @@ def value(self): def value(self, value): """Sets the value of this Option. + The actual value of the option. # noqa: E501 :param value: The value of this Option. # noqa: E501 :type value: str diff --git a/hubspot/automation/actions/models/public_action_definition_input_field_dependencies_inner.py b/hubspot/automation/actions/models/public_action_definition_input_field_dependencies_inner.py index a9528efa..02256259 100644 --- a/hubspot/automation/actions/models/public_action_definition_input_field_dependencies_inner.py +++ b/hubspot/automation/actions/models/public_action_definition_input_field_dependencies_inner.py @@ -44,6 +44,8 @@ class PublicActionDefinitionInputFieldDependenciesInner(object): "controlling_field_value": "controllingFieldValue", } + discriminator_value_class_map = {} + def __init__(self, dependency_type="CONDITIONAL_SINGLE_FIELD", controlling_field_name=None, dependent_field_names=None, controlling_field_value=None, local_vars_configuration=None): # noqa: E501 """PublicActionDefinitionInputFieldDependenciesInner - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: @@ -54,7 +56,7 @@ def __init__(self, dependency_type="CONDITIONAL_SINGLE_FIELD", controlling_field self._controlling_field_name = None self._dependent_field_names = None self._controlling_field_value = None - self.discriminator = None + self.discriminator = "dependency_type" self.dependency_type = dependency_type self.controlling_field_name = controlling_field_name @@ -156,6 +158,12 @@ def controlling_field_value(self, controlling_field_value): self._controlling_field_value = controlling_field_value + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_key = self.attribute_map[self.discriminator] + discriminator_value = data[discriminator_key] + return self.discriminator_value_class_map.get(discriminator_value) + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} From a4b294a03a7067567551875d70c3e8e4132b41fa Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:38:30 +0300 Subject: [PATCH 03/12] Codegen: CMS Clients --- .../audit_logs/models/collection_response_public_audit_log.py | 2 -- hubspot/cms/audit_logs/models/next_page.py | 4 ++++ hubspot/cms/audit_logs/models/previous_page.py | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hubspot/cms/audit_logs/models/collection_response_public_audit_log.py b/hubspot/cms/audit_logs/models/collection_response_public_audit_log.py index 6e4b453b..d1a302d7 100644 --- a/hubspot/cms/audit_logs/models/collection_response_public_audit_log.py +++ b/hubspot/cms/audit_logs/models/collection_response_public_audit_log.py @@ -78,7 +78,6 @@ def paging(self, paging): def results(self): """Gets the results of this CollectionResponsePublicAuditLog. # noqa: E501 - # noqa: E501 :return: The results of this CollectionResponsePublicAuditLog. # noqa: E501 :rtype: list[PublicAuditLog] @@ -89,7 +88,6 @@ def results(self): def results(self, results): """Sets the results of this CollectionResponsePublicAuditLog. - # noqa: E501 :param results: The results of this CollectionResponsePublicAuditLog. # noqa: E501 :type results: list[PublicAuditLog] diff --git a/hubspot/cms/audit_logs/models/next_page.py b/hubspot/cms/audit_logs/models/next_page.py index 117965ff..3a31695e 100644 --- a/hubspot/cms/audit_logs/models/next_page.py +++ b/hubspot/cms/audit_logs/models/next_page.py @@ -57,6 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq 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 @@ -67,6 +68,7 @@ def link(self): 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 @@ -78,6 +80,7 @@ def link(self, link): 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 +91,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 diff --git a/hubspot/cms/audit_logs/models/previous_page.py b/hubspot/cms/audit_logs/models/previous_page.py index ae52a17b..10302d31 100644 --- a/hubspot/cms/audit_logs/models/previous_page.py +++ b/hubspot/cms/audit_logs/models/previous_page.py @@ -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 From bb2a33b6bc260a802688b6cc18cf0340b5416589 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:42:39 +0300 Subject: [PATCH 04/12] codegen: domains --- hubspot/cms/domains/__init__.py | 2 +- hubspot/cms/domains/api/domains_api.py | 2 +- hubspot/cms/domains/api_client.py | 2 +- hubspot/cms/domains/configuration.py | 2 +- hubspot/cms/domains/exceptions.py | 2 +- hubspot/cms/domains/models/__init__.py | 2 +- .../collection_response_with_total_domain_forward_paging.py | 2 +- hubspot/cms/domains/models/domain.py | 2 +- hubspot/cms/domains/models/error.py | 2 +- hubspot/cms/domains/models/error_detail.py | 2 +- hubspot/cms/domains/models/forward_paging.py | 2 +- hubspot/cms/domains/models/next_page.py | 6 +++++- hubspot/cms/domains/rest.py | 2 +- 13 files changed, 17 insertions(+), 13 deletions(-) diff --git a/hubspot/cms/domains/__init__.py b/hubspot/cms/domains/__init__.py index 503e1c8f..fbab5500 100644 --- a/hubspot/cms/domains/__init__.py +++ b/hubspot/cms/domains/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/api/domains_api.py b/hubspot/cms/domains/api/domains_api.py index d3db1809..7dc119fe 100644 --- a/hubspot/cms/domains/api/domains_api.py +++ b/hubspot/cms/domains/api/domains_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/api_client.py b/hubspot/cms/domains/api_client.py index 3028c410..ab5c0862 100644 --- a/hubspot/cms/domains/api_client.py +++ b/hubspot/cms/domains/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/configuration.py b/hubspot/cms/domains/configuration.py index cf1ba903..251ff2cf 100644 --- a/hubspot/cms/domains/configuration.py +++ b/hubspot/cms/domains/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/exceptions.py b/hubspot/cms/domains/exceptions.py index 04303bd3..bc860f39 100644 --- a/hubspot/cms/domains/exceptions.py +++ b/hubspot/cms/domains/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/__init__.py b/hubspot/cms/domains/models/__init__.py index 5e01d691..f03ec070 100644 --- a/hubspot/cms/domains/models/__init__.py +++ b/hubspot/cms/domains/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/collection_response_with_total_domain_forward_paging.py b/hubspot/cms/domains/models/collection_response_with_total_domain_forward_paging.py index 66c2cf74..25c59102 100644 --- a/hubspot/cms/domains/models/collection_response_with_total_domain_forward_paging.py +++ b/hubspot/cms/domains/models/collection_response_with_total_domain_forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/domain.py b/hubspot/cms/domains/models/domain.py index 41207415..4141b43e 100644 --- a/hubspot/cms/domains/models/domain.py +++ b/hubspot/cms/domains/models/domain.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/error.py b/hubspot/cms/domains/models/error.py index e4930f5a..cf0ef6ba 100644 --- a/hubspot/cms/domains/models/error.py +++ b/hubspot/cms/domains/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/error_detail.py b/hubspot/cms/domains/models/error_detail.py index 19e18ba1..673bf7da 100644 --- a/hubspot/cms/domains/models/error_detail.py +++ b/hubspot/cms/domains/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/forward_paging.py b/hubspot/cms/domains/models/forward_paging.py index 6396b484..c3587350 100644 --- a/hubspot/cms/domains/models/forward_paging.py +++ b/hubspot/cms/domains/models/forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/cms/domains/models/next_page.py b/hubspot/cms/domains/models/next_page.py index 7c07c9c5..a67f1dd2 100644 --- a/hubspot/cms/domains/models/next_page.py +++ b/hubspot/cms/domains/models/next_page.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -57,6 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq 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 @@ -67,6 +68,7 @@ def link(self): 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 @@ -78,6 +80,7 @@ def link(self, link): 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 +91,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 diff --git a/hubspot/cms/domains/rest.py b/hubspot/cms/domains/rest.py index 9c2cd43f..14578dc0 100644 --- a/hubspot/cms/domains/rest.py +++ b/hubspot/cms/domains/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Domains + Domains No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 From c47a5016fa4287b5073c4f2359b234b0a7fe351d Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:44:40 +0300 Subject: [PATCH 05/12] codegen: pages --- hubspot/cms/pages/models/angle.py | 4 ---- hubspot/cms/pages/models/background_image.py | 6 ----- hubspot/cms/pages/models/gradient.py | 2 -- hubspot/cms/pages/models/layout_section.py | 24 -------------------- hubspot/cms/pages/models/next_page.py | 8 +++---- hubspot/cms/pages/models/page.py | 4 ---- hubspot/cms/pages/models/previous_page.py | 8 +++---- hubspot/cms/pages/models/row_meta_data.py | 2 -- hubspot/cms/pages/models/side_or_corner.py | 4 ---- hubspot/cms/pages/models/styles.py | 8 ------- 10 files changed, 8 insertions(+), 62 deletions(-) diff --git a/hubspot/cms/pages/models/angle.py b/hubspot/cms/pages/models/angle.py index 1d52805e..fc49d1a1 100644 --- a/hubspot/cms/pages/models/angle.py +++ b/hubspot/cms/pages/models/angle.py @@ -56,7 +56,6 @@ def __init__(self, units=None, value=None, local_vars_configuration=None): # no def units(self): """Gets the units of this Angle. # noqa: E501 - # noqa: E501 :return: The units of this Angle. # noqa: E501 :rtype: str @@ -67,7 +66,6 @@ def units(self): def units(self, units): """Sets the units of this Angle. - # noqa: E501 :param units: The units of this Angle. # noqa: E501 :type units: str @@ -81,7 +79,6 @@ def units(self, units): def value(self): """Gets the value of this Angle. # noqa: E501 - # noqa: E501 :return: The value of this Angle. # noqa: E501 :rtype: float @@ -92,7 +89,6 @@ def value(self): def value(self, value): """Sets the value of this Angle. - # noqa: E501 :param value: The value of this Angle. # noqa: E501 :type value: float diff --git a/hubspot/cms/pages/models/background_image.py b/hubspot/cms/pages/models/background_image.py index b7a7af14..e8deada8 100644 --- a/hubspot/cms/pages/models/background_image.py +++ b/hubspot/cms/pages/models/background_image.py @@ -58,7 +58,6 @@ def __init__(self, image_url=None, background_size=None, background_position=Non def image_url(self): """Gets the image_url of this BackgroundImage. # noqa: E501 - # noqa: E501 :return: The image_url of this BackgroundImage. # noqa: E501 :rtype: str @@ -69,7 +68,6 @@ def image_url(self): def image_url(self, image_url): """Sets the image_url of this BackgroundImage. - # noqa: E501 :param image_url: The image_url of this BackgroundImage. # noqa: E501 :type image_url: str @@ -83,7 +81,6 @@ def image_url(self, image_url): def background_size(self): """Gets the background_size of this BackgroundImage. # noqa: E501 - # noqa: E501 :return: The background_size of this BackgroundImage. # noqa: E501 :rtype: str @@ -94,7 +91,6 @@ def background_size(self): def background_size(self, background_size): """Sets the background_size of this BackgroundImage. - # noqa: E501 :param background_size: The background_size of this BackgroundImage. # noqa: E501 :type background_size: str @@ -108,7 +104,6 @@ def background_size(self, background_size): def background_position(self): """Gets the background_position of this BackgroundImage. # noqa: E501 - # noqa: E501 :return: The background_position of this BackgroundImage. # noqa: E501 :rtype: str @@ -119,7 +114,6 @@ def background_position(self): def background_position(self, background_position): """Sets the background_position of this BackgroundImage. - # noqa: E501 :param background_position: The background_position of this BackgroundImage. # noqa: E501 :type background_position: str diff --git a/hubspot/cms/pages/models/gradient.py b/hubspot/cms/pages/models/gradient.py index 13916d91..81057f58 100644 --- a/hubspot/cms/pages/models/gradient.py +++ b/hubspot/cms/pages/models/gradient.py @@ -104,7 +104,6 @@ def side_or_corner(self, side_or_corner): def colors(self): """Gets the colors of this Gradient. # noqa: E501 - # noqa: E501 :return: The colors of this Gradient. # noqa: E501 :rtype: list[ColorStop] @@ -115,7 +114,6 @@ def colors(self): def colors(self, colors): """Sets the colors of this Gradient. - # noqa: E501 :param colors: The colors of this Gradient. # noqa: E501 :type colors: list[ColorStop] diff --git a/hubspot/cms/pages/models/layout_section.py b/hubspot/cms/pages/models/layout_section.py index 74f93db2..436d230c 100644 --- a/hubspot/cms/pages/models/layout_section.py +++ b/hubspot/cms/pages/models/layout_section.py @@ -122,7 +122,6 @@ def __init__( def css_style(self): """Gets the css_style of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The css_style of this LayoutSection. # noqa: E501 :rtype: str @@ -133,7 +132,6 @@ def css_style(self): def css_style(self, css_style): """Sets the css_style of this LayoutSection. - # noqa: E501 :param css_style: The css_style of this LayoutSection. # noqa: E501 :type css_style: str @@ -147,7 +145,6 @@ def css_style(self, css_style): def label(self): """Gets the label of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The label of this LayoutSection. # noqa: E501 :rtype: str @@ -158,7 +155,6 @@ def label(self): def label(self, label): """Sets the label of this LayoutSection. - # noqa: E501 :param label: The label of this LayoutSection. # noqa: E501 :type label: str @@ -172,7 +168,6 @@ def label(self, label): def type(self): """Gets the type of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The type of this LayoutSection. # noqa: E501 :rtype: str @@ -183,7 +178,6 @@ def type(self): def type(self, type): """Sets the type of this LayoutSection. - # noqa: E501 :param type: The type of this LayoutSection. # noqa: E501 :type type: str @@ -197,7 +191,6 @@ def type(self, type): def params(self): """Gets the params of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The params of this LayoutSection. # noqa: E501 :rtype: dict[str, object] @@ -208,7 +201,6 @@ def params(self): def params(self, params): """Sets the params of this LayoutSection. - # noqa: E501 :param params: The params of this LayoutSection. # noqa: E501 :type params: dict[str, object] @@ -222,7 +214,6 @@ def params(self, params): def rows(self): """Gets the rows of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The rows of this LayoutSection. # noqa: E501 :rtype: list[dict[str, LayoutSection]] @@ -233,7 +224,6 @@ def rows(self): def rows(self, rows): """Sets the rows of this LayoutSection. - # noqa: E501 :param rows: The rows of this LayoutSection. # noqa: E501 :type rows: list[dict[str, LayoutSection]] @@ -247,7 +237,6 @@ def rows(self, rows): def row_meta_data(self): """Gets the row_meta_data of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The row_meta_data of this LayoutSection. # noqa: E501 :rtype: list[RowMetaData] @@ -258,7 +247,6 @@ def row_meta_data(self): def row_meta_data(self, row_meta_data): """Sets the row_meta_data of this LayoutSection. - # noqa: E501 :param row_meta_data: The row_meta_data of this LayoutSection. # noqa: E501 :type row_meta_data: list[RowMetaData] @@ -272,7 +260,6 @@ def row_meta_data(self, row_meta_data): def cells(self): """Gets the cells of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The cells of this LayoutSection. # noqa: E501 :rtype: list[LayoutSection] @@ -283,7 +270,6 @@ def cells(self): def cells(self, cells): """Sets the cells of this LayoutSection. - # noqa: E501 :param cells: The cells of this LayoutSection. # noqa: E501 :type cells: list[LayoutSection] @@ -297,7 +283,6 @@ def cells(self, cells): def css_class(self): """Gets the css_class of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The css_class of this LayoutSection. # noqa: E501 :rtype: str @@ -308,7 +293,6 @@ def css_class(self): def css_class(self, css_class): """Sets the css_class of this LayoutSection. - # noqa: E501 :param css_class: The css_class of this LayoutSection. # noqa: E501 :type css_class: str @@ -322,7 +306,6 @@ def css_class(self, css_class): def w(self): """Gets the w of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The w of this LayoutSection. # noqa: E501 :rtype: int @@ -333,7 +316,6 @@ def w(self): def w(self, w): """Sets the w of this LayoutSection. - # noqa: E501 :param w: The w of this LayoutSection. # noqa: E501 :type w: int @@ -347,7 +329,6 @@ def w(self, w): def css_id(self): """Gets the css_id of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The css_id of this LayoutSection. # noqa: E501 :rtype: str @@ -358,7 +339,6 @@ def css_id(self): def css_id(self, css_id): """Sets the css_id of this LayoutSection. - # noqa: E501 :param css_id: The css_id of this LayoutSection. # noqa: E501 :type css_id: str @@ -372,7 +352,6 @@ def css_id(self, css_id): def x(self): """Gets the x of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The x of this LayoutSection. # noqa: E501 :rtype: int @@ -383,7 +362,6 @@ def x(self): def x(self, x): """Sets the x of this LayoutSection. - # noqa: E501 :param x: The x of this LayoutSection. # noqa: E501 :type x: int @@ -397,7 +375,6 @@ def x(self, x): def name(self): """Gets the name of this LayoutSection. # noqa: E501 - # noqa: E501 :return: The name of this LayoutSection. # noqa: E501 :rtype: str @@ -408,7 +385,6 @@ def name(self): def name(self, name): """Sets the name of this LayoutSection. - # noqa: E501 :param name: The name of this LayoutSection. # noqa: E501 :type name: str diff --git a/hubspot/cms/pages/models/next_page.py b/hubspot/cms/pages/models/next_page.py index 366ad441..4df30f7a 100644 --- a/hubspot/cms/pages/models/next_page.py +++ b/hubspot/cms/pages/models/next_page.py @@ -57,7 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq def link(self): """Gets the link of this NextPage. # noqa: E501 - # 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 @@ -68,7 +68,7 @@ def link(self): def link(self, link): """Sets the link of this NextPage. - # noqa: E501 + 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 @@ -80,7 +80,7 @@ def link(self, link): def after(self): """Gets the after of this NextPage. # noqa: E501 - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :return: The after of this NextPage. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def after(self): def after(self, after): """Sets the after of this NextPage. - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :param after: The after of this NextPage. # noqa: E501 :type after: str diff --git a/hubspot/cms/pages/models/page.py b/hubspot/cms/pages/models/page.py index 1a0edb48..9bb42856 100644 --- a/hubspot/cms/pages/models/page.py +++ b/hubspot/cms/pages/models/page.py @@ -1945,7 +1945,6 @@ def subcategory(self, subcategory): def layout_sections(self): """Gets the layout_sections of this Page. # noqa: E501 - # noqa: E501 :return: The layout_sections of this Page. # noqa: E501 :rtype: dict[str, LayoutSection] @@ -1956,7 +1955,6 @@ def layout_sections(self): def layout_sections(self, layout_sections): """Sets the layout_sections of this Page. - # noqa: E501 :param layout_sections: The layout_sections of this Page. # noqa: E501 :type layout_sections: dict[str, LayoutSection] @@ -2344,7 +2342,6 @@ def archived_at(self, archived_at): def theme_settings_values(self): """Gets the theme_settings_values of this Page. # noqa: E501 - # noqa: E501 :return: The theme_settings_values of this Page. # noqa: E501 :rtype: dict[str, object] @@ -2355,7 +2352,6 @@ def theme_settings_values(self): def theme_settings_values(self, theme_settings_values): """Sets the theme_settings_values of this Page. - # noqa: E501 :param theme_settings_values: The theme_settings_values of this Page. # noqa: E501 :type theme_settings_values: dict[str, object] diff --git a/hubspot/cms/pages/models/previous_page.py b/hubspot/cms/pages/models/previous_page.py index c6b958d0..b141ee81 100644 --- a/hubspot/cms/pages/models/previous_page.py +++ b/hubspot/cms/pages/models/previous_page.py @@ -57,7 +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 - # noqa: E501 + A paging cursor token for retrieving previous pages. # noqa: E501 :return: The before of this PreviousPage. # noqa: E501 :rtype: str @@ -68,7 +68,7 @@ def before(self): def before(self, before): """Sets the before of this PreviousPage. - # noqa: E501 + A paging cursor token for retrieving previous pages. # noqa: E501 :param before: The before of this PreviousPage. # noqa: E501 :type before: str @@ -82,7 +82,7 @@ def before(self, before): def link(self): """Gets the link of this PreviousPage. # noqa: E501 - # 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 @@ -93,7 +93,7 @@ def link(self): def link(self, link): """Sets the link of this PreviousPage. - # noqa: E501 + 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/cms/pages/models/row_meta_data.py b/hubspot/cms/pages/models/row_meta_data.py index ed408985..b6813861 100644 --- a/hubspot/cms/pages/models/row_meta_data.py +++ b/hubspot/cms/pages/models/row_meta_data.py @@ -56,7 +56,6 @@ def __init__(self, css_class=None, styles=None, local_vars_configuration=None): def css_class(self): """Gets the css_class of this RowMetaData. # noqa: E501 - # noqa: E501 :return: The css_class of this RowMetaData. # noqa: E501 :rtype: str @@ -67,7 +66,6 @@ def css_class(self): def css_class(self, css_class): """Sets the css_class of this RowMetaData. - # noqa: E501 :param css_class: The css_class of this RowMetaData. # noqa: E501 :type css_class: str diff --git a/hubspot/cms/pages/models/side_or_corner.py b/hubspot/cms/pages/models/side_or_corner.py index c7f3c579..706b3539 100644 --- a/hubspot/cms/pages/models/side_or_corner.py +++ b/hubspot/cms/pages/models/side_or_corner.py @@ -56,7 +56,6 @@ def __init__(self, horizontal_side=None, vertical_side=None, local_vars_configur def horizontal_side(self): """Gets the horizontal_side of this SideOrCorner. # noqa: E501 - # noqa: E501 :return: The horizontal_side of this SideOrCorner. # noqa: E501 :rtype: str @@ -67,7 +66,6 @@ def horizontal_side(self): def horizontal_side(self, horizontal_side): """Sets the horizontal_side of this SideOrCorner. - # noqa: E501 :param horizontal_side: The horizontal_side of this SideOrCorner. # noqa: E501 :type horizontal_side: str @@ -81,7 +79,6 @@ def horizontal_side(self, horizontal_side): def vertical_side(self): """Gets the vertical_side of this SideOrCorner. # noqa: E501 - # noqa: E501 :return: The vertical_side of this SideOrCorner. # noqa: E501 :rtype: str @@ -92,7 +89,6 @@ def vertical_side(self): def vertical_side(self, vertical_side): """Sets the vertical_side of this SideOrCorner. - # noqa: E501 :param vertical_side: The vertical_side of this SideOrCorner. # noqa: E501 :type vertical_side: str diff --git a/hubspot/cms/pages/models/styles.py b/hubspot/cms/pages/models/styles.py index f706e835..4f4c91a2 100644 --- a/hubspot/cms/pages/models/styles.py +++ b/hubspot/cms/pages/models/styles.py @@ -115,7 +115,6 @@ def background_color(self, background_color): def flexbox_positioning(self): """Gets the flexbox_positioning of this Styles. # noqa: E501 - # noqa: E501 :return: The flexbox_positioning of this Styles. # noqa: E501 :rtype: str @@ -126,7 +125,6 @@ def flexbox_positioning(self): def flexbox_positioning(self, flexbox_positioning): """Sets the flexbox_positioning of this Styles. - # noqa: E501 :param flexbox_positioning: The flexbox_positioning of this Styles. # noqa: E501 :type flexbox_positioning: str @@ -163,7 +161,6 @@ def background_image(self, background_image): def force_full_width_section(self): """Gets the force_full_width_section of this Styles. # noqa: E501 - # noqa: E501 :return: The force_full_width_section of this Styles. # noqa: E501 :rtype: bool @@ -174,7 +171,6 @@ def force_full_width_section(self): def force_full_width_section(self, force_full_width_section): """Sets the force_full_width_section of this Styles. - # noqa: E501 :param force_full_width_section: The force_full_width_section of this Styles. # noqa: E501 :type force_full_width_section: bool @@ -188,7 +184,6 @@ def force_full_width_section(self, force_full_width_section): def vertical_alignment(self): """Gets the vertical_alignment of this Styles. # noqa: E501 - # noqa: E501 :return: The vertical_alignment of this Styles. # noqa: E501 :rtype: str @@ -199,7 +194,6 @@ def vertical_alignment(self): def vertical_alignment(self, vertical_alignment): """Sets the vertical_alignment of this Styles. - # noqa: E501 :param vertical_alignment: The vertical_alignment of this Styles. # noqa: E501 :type vertical_alignment: str @@ -213,7 +207,6 @@ def vertical_alignment(self, vertical_alignment): def max_width_section_centering(self): """Gets the max_width_section_centering of this Styles. # noqa: E501 - # noqa: E501 :return: The max_width_section_centering of this Styles. # noqa: E501 :rtype: int @@ -224,7 +217,6 @@ def max_width_section_centering(self): def max_width_section_centering(self, max_width_section_centering): """Sets the max_width_section_centering of this Styles. - # noqa: E501 :param max_width_section_centering: The max_width_section_centering of this Styles. # noqa: E501 :type max_width_section_centering: int From 04240b8be4e13cb03825154793c62d531721beea Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:47:01 +0300 Subject: [PATCH 06/12] codegen: site_search --- hubspot/cms/site_search/__init__.py | 2 +- hubspot/cms/site_search/api/public_api.py | 2 +- hubspot/cms/site_search/api_client.py | 2 +- hubspot/cms/site_search/configuration.py | 2 +- hubspot/cms/site_search/exceptions.py | 2 +- hubspot/cms/site_search/models/__init__.py | 2 +- hubspot/cms/site_search/models/content_search_result.py | 2 +- hubspot/cms/site_search/models/error.py | 2 +- hubspot/cms/site_search/models/error_detail.py | 2 +- hubspot/cms/site_search/models/indexed_data.py | 2 +- hubspot/cms/site_search/models/indexed_field.py | 2 +- hubspot/cms/site_search/models/public_search_results.py | 2 +- hubspot/cms/site_search/rest.py | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hubspot/cms/site_search/__init__.py b/hubspot/cms/site_search/__init__.py index 066760ab..3bd44834 100644 --- a/hubspot/cms/site_search/__init__.py +++ b/hubspot/cms/site_search/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/api/public_api.py b/hubspot/cms/site_search/api/public_api.py index 5327bac6..af57bf8b 100644 --- a/hubspot/cms/site_search/api/public_api.py +++ b/hubspot/cms/site_search/api/public_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/api_client.py b/hubspot/cms/site_search/api_client.py index 9f54aa89..69374fda 100644 --- a/hubspot/cms/site_search/api_client.py +++ b/hubspot/cms/site_search/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/configuration.py b/hubspot/cms/site_search/configuration.py index 1f1570c7..18698a4a 100644 --- a/hubspot/cms/site_search/configuration.py +++ b/hubspot/cms/site_search/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/exceptions.py b/hubspot/cms/site_search/exceptions.py index a59f468a..048f5976 100644 --- a/hubspot/cms/site_search/exceptions.py +++ b/hubspot/cms/site_search/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/__init__.py b/hubspot/cms/site_search/models/__init__.py index 75e7f4af..8634a45b 100644 --- a/hubspot/cms/site_search/models/__init__.py +++ b/hubspot/cms/site_search/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/content_search_result.py b/hubspot/cms/site_search/models/content_search_result.py index 30646726..5edc92a0 100644 --- a/hubspot/cms/site_search/models/content_search_result.py +++ b/hubspot/cms/site_search/models/content_search_result.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/error.py b/hubspot/cms/site_search/models/error.py index 46962f0f..3419424e 100644 --- a/hubspot/cms/site_search/models/error.py +++ b/hubspot/cms/site_search/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/error_detail.py b/hubspot/cms/site_search/models/error_detail.py index f542a848..798ccaf8 100644 --- a/hubspot/cms/site_search/models/error_detail.py +++ b/hubspot/cms/site_search/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/indexed_data.py b/hubspot/cms/site_search/models/indexed_data.py index 6a6a4bce..96ab9399 100644 --- a/hubspot/cms/site_search/models/indexed_data.py +++ b/hubspot/cms/site_search/models/indexed_data.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/indexed_field.py b/hubspot/cms/site_search/models/indexed_field.py index 26c8f361..985493e0 100644 --- a/hubspot/cms/site_search/models/indexed_field.py +++ b/hubspot/cms/site_search/models/indexed_field.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/models/public_search_results.py b/hubspot/cms/site_search/models/public_search_results.py index a8d80896..2b1a7b22 100644 --- a/hubspot/cms/site_search/models/public_search_results.py +++ b/hubspot/cms/site_search/models/public_search_results.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 diff --git a/hubspot/cms/site_search/rest.py b/hubspot/cms/site_search/rest.py index 06445de3..dc7b8730 100644 --- a/hubspot/cms/site_search/rest.py +++ b/hubspot/cms/site_search/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Site Search + Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 From a15bad71cd37e5971e08f606822242de4e059cf6 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 11 Nov 2025 12:50:56 +0300 Subject: [PATCH 07/12] codegen: url_redirects --- hubspot/cms/url_redirects/__init__.py | 2 +- hubspot/cms/url_redirects/api/redirects_api.py | 2 +- hubspot/cms/url_redirects/api_client.py | 2 +- hubspot/cms/url_redirects/configuration.py | 2 +- hubspot/cms/url_redirects/exceptions.py | 2 +- hubspot/cms/url_redirects/models/__init__.py | 2 +- ...ection_response_with_total_url_mapping_forward_paging.py | 2 +- hubspot/cms/url_redirects/models/error.py | 2 +- hubspot/cms/url_redirects/models/error_detail.py | 2 +- hubspot/cms/url_redirects/models/forward_paging.py | 2 +- hubspot/cms/url_redirects/models/next_page.py | 6 +++++- hubspot/cms/url_redirects/models/url_mapping.py | 2 +- .../url_redirects/models/url_mapping_create_request_body.py | 2 +- hubspot/cms/url_redirects/rest.py | 2 +- 14 files changed, 18 insertions(+), 14 deletions(-) diff --git a/hubspot/cms/url_redirects/__init__.py b/hubspot/cms/url_redirects/__init__.py index 268ebb98..4e7a2cef 100644 --- a/hubspot/cms/url_redirects/__init__.py +++ b/hubspot/cms/url_redirects/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/api/redirects_api.py b/hubspot/cms/url_redirects/api/redirects_api.py index 888661b8..c5d6dd3d 100644 --- a/hubspot/cms/url_redirects/api/redirects_api.py +++ b/hubspot/cms/url_redirects/api/redirects_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/api_client.py b/hubspot/cms/url_redirects/api_client.py index 5a15650d..a1744c55 100644 --- a/hubspot/cms/url_redirects/api_client.py +++ b/hubspot/cms/url_redirects/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/configuration.py b/hubspot/cms/url_redirects/configuration.py index 2f596637..fa2f0836 100644 --- a/hubspot/cms/url_redirects/configuration.py +++ b/hubspot/cms/url_redirects/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/exceptions.py b/hubspot/cms/url_redirects/exceptions.py index 995947e2..2333af31 100644 --- a/hubspot/cms/url_redirects/exceptions.py +++ b/hubspot/cms/url_redirects/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/__init__.py b/hubspot/cms/url_redirects/models/__init__.py index e3c238c0..683609fc 100644 --- a/hubspot/cms/url_redirects/models/__init__.py +++ b/hubspot/cms/url_redirects/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/collection_response_with_total_url_mapping_forward_paging.py b/hubspot/cms/url_redirects/models/collection_response_with_total_url_mapping_forward_paging.py index ef9d57ae..b39d0ded 100644 --- a/hubspot/cms/url_redirects/models/collection_response_with_total_url_mapping_forward_paging.py +++ b/hubspot/cms/url_redirects/models/collection_response_with_total_url_mapping_forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/error.py b/hubspot/cms/url_redirects/models/error.py index 5b223bbc..16ce3a95 100644 --- a/hubspot/cms/url_redirects/models/error.py +++ b/hubspot/cms/url_redirects/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/error_detail.py b/hubspot/cms/url_redirects/models/error_detail.py index f95c510f..cd37eed9 100644 --- a/hubspot/cms/url_redirects/models/error_detail.py +++ b/hubspot/cms/url_redirects/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/forward_paging.py b/hubspot/cms/url_redirects/models/forward_paging.py index 1c9c76ba..8e4e9f9a 100644 --- a/hubspot/cms/url_redirects/models/forward_paging.py +++ b/hubspot/cms/url_redirects/models/forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/next_page.py b/hubspot/cms/url_redirects/models/next_page.py index aaa71927..a5415dac 100644 --- a/hubspot/cms/url_redirects/models/next_page.py +++ b/hubspot/cms/url_redirects/models/next_page.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 @@ -57,6 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq 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 @@ -67,6 +68,7 @@ def link(self): 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 @@ -78,6 +80,7 @@ def link(self, link): 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 +91,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 diff --git a/hubspot/cms/url_redirects/models/url_mapping.py b/hubspot/cms/url_redirects/models/url_mapping.py index 1bf89a4f..2e354361 100644 --- a/hubspot/cms/url_redirects/models/url_mapping.py +++ b/hubspot/cms/url_redirects/models/url_mapping.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/models/url_mapping_create_request_body.py b/hubspot/cms/url_redirects/models/url_mapping_create_request_body.py index 7cdb9469..2021b40d 100644 --- a/hubspot/cms/url_redirects/models/url_mapping_create_request_body.py +++ b/hubspot/cms/url_redirects/models/url_mapping_create_request_body.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 diff --git a/hubspot/cms/url_redirects/rest.py b/hubspot/cms/url_redirects/rest.py index 55813ab6..666b3541 100644 --- a/hubspot/cms/url_redirects/rest.py +++ b/hubspot/cms/url_redirects/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CMS Url Redirects + Url Redirects URL redirect operations # noqa: E501 From 6753b087e07c9ed40ec353359b1445684175c358 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 18 Nov 2025 13:51:20 +0300 Subject: [PATCH 08/12] Codegen: Conversations VisitorIdentification --- hubspot/conversations/visitor_identification/__init__.py | 2 +- .../visitor_identification/api/generate_api.py | 8 +++----- .../conversations/visitor_identification/api_client.py | 2 +- .../conversations/visitor_identification/configuration.py | 2 +- .../conversations/visitor_identification/exceptions.py | 2 +- .../visitor_identification/models/__init__.py | 2 +- .../conversations/visitor_identification/models/error.py | 2 +- .../visitor_identification/models/error_detail.py | 2 +- .../models/identification_token_generation_request.py | 2 +- .../models/identification_token_response.py | 4 +--- hubspot/conversations/visitor_identification/rest.py | 2 +- 11 files changed, 13 insertions(+), 17 deletions(-) diff --git a/hubspot/conversations/visitor_identification/__init__.py b/hubspot/conversations/visitor_identification/__init__.py index 875f8537..ee4cba84 100644 --- a/hubspot/conversations/visitor_identification/__init__.py +++ b/hubspot/conversations/visitor_identification/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/api/generate_api.py b/hubspot/conversations/visitor_identification/api/generate_api.py index c8dbf9c4..85d98283 100644 --- a/hubspot/conversations/visitor_identification/api/generate_api.py +++ b/hubspot/conversations/visitor_identification/api/generate_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 @@ -34,9 +34,8 @@ def __init__(self, api_client=None): self.api_client = api_client def generate_token(self, identification_token_generation_request, **kwargs): # noqa: E501 - """Generate a token # noqa: E501 + """generate_token # noqa: E501 - Generates a new visitor identification token. This token will be unique every time this endpoint is called, even if called with the same email address. This token is temporary and will expire after 12 hours # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -64,9 +63,8 @@ def generate_token(self, identification_token_generation_request, **kwargs): # return self.generate_token_with_http_info(identification_token_generation_request, **kwargs) # noqa: E501 def generate_token_with_http_info(self, identification_token_generation_request, **kwargs): # noqa: E501 - """Generate a token # noqa: E501 + """generate_token # noqa: E501 - Generates a new visitor identification token. This token will be unique every time this endpoint is called, even if called with the same email address. This token is temporary and will expire after 12 hours # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/hubspot/conversations/visitor_identification/api_client.py b/hubspot/conversations/visitor_identification/api_client.py index d9658ca5..50cbfe2c 100644 --- a/hubspot/conversations/visitor_identification/api_client.py +++ b/hubspot/conversations/visitor_identification/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/configuration.py b/hubspot/conversations/visitor_identification/configuration.py index 1aa42537..c027cfd4 100644 --- a/hubspot/conversations/visitor_identification/configuration.py +++ b/hubspot/conversations/visitor_identification/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/exceptions.py b/hubspot/conversations/visitor_identification/exceptions.py index 27f99ecb..b46aee78 100644 --- a/hubspot/conversations/visitor_identification/exceptions.py +++ b/hubspot/conversations/visitor_identification/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/models/__init__.py b/hubspot/conversations/visitor_identification/models/__init__.py index 8b2de917..040c9d58 100644 --- a/hubspot/conversations/visitor_identification/models/__init__.py +++ b/hubspot/conversations/visitor_identification/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/models/error.py b/hubspot/conversations/visitor_identification/models/error.py index 379d7275..65a9ec62 100644 --- a/hubspot/conversations/visitor_identification/models/error.py +++ b/hubspot/conversations/visitor_identification/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/models/error_detail.py b/hubspot/conversations/visitor_identification/models/error_detail.py index 26280691..4cefd920 100644 --- a/hubspot/conversations/visitor_identification/models/error_detail.py +++ b/hubspot/conversations/visitor_identification/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/models/identification_token_generation_request.py b/hubspot/conversations/visitor_identification/models/identification_token_generation_request.py index 8d2f0661..5dd3838c 100644 --- a/hubspot/conversations/visitor_identification/models/identification_token_generation_request.py +++ b/hubspot/conversations/visitor_identification/models/identification_token_generation_request.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 diff --git a/hubspot/conversations/visitor_identification/models/identification_token_response.py b/hubspot/conversations/visitor_identification/models/identification_token_response.py index bd19ee70..d75113d0 100644 --- a/hubspot/conversations/visitor_identification/models/identification_token_response.py +++ b/hubspot/conversations/visitor_identification/models/identification_token_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 @@ -54,7 +54,6 @@ def __init__(self, token=None, local_vars_configuration=None): # noqa: E501 def token(self): """Gets the token of this IdentificationTokenResponse. # noqa: E501 - # noqa: E501 :return: The token of this IdentificationTokenResponse. # noqa: E501 :rtype: str @@ -65,7 +64,6 @@ def token(self): def token(self, token): """Sets the token of this IdentificationTokenResponse. - # noqa: E501 :param token: The token of this IdentificationTokenResponse. # noqa: E501 :type token: str diff --git a/hubspot/conversations/visitor_identification/rest.py b/hubspot/conversations/visitor_identification/rest.py index 11628106..6abf9278 100644 --- a/hubspot/conversations/visitor_identification/rest.py +++ b/hubspot/conversations/visitor_identification/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - Visitor Identification + Conversations Visitor Identification The Visitor Identification API allows you to pass identification information to the HubSpot chat widget for otherwise unknown visitors that were verified by your own authentication system. # noqa: E501 From dfbf56255c3a361bc1ba714d084f12736fcb2648 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 18 Nov 2025 13:57:58 +0300 Subject: [PATCH 09/12] Codegen: Events --- hubspot/events/api/events_api.py | 4 ++-- .../models/collection_response_external_unified_event.py | 2 -- hubspot/events/models/external_unified_event.py | 7 +++++-- hubspot/events/models/next_page.py | 8 ++++---- hubspot/events/models/previous_page.py | 4 ++++ hubspot/events/send/api_client.py | 2 +- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/hubspot/events/api/events_api.py b/hubspot/events/api/events_api.py index 4fe73806..512ee317 100644 --- a/hubspot/events/api/events_api.py +++ b/hubspot/events/api/events_api.py @@ -224,7 +224,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501 def get_types(self, **kwargs): # noqa: E501 """Event Types # noqa: E501 - This endpoint returns a list of event type names which are visible to you. You may use these event type names to query the API for specific event instances of a desired type. # noqa: E501 + This endpoint returns a list of event type names which are visible to you. You may use these event type names to query the API for specific event instances of a desired type. Note: the `get_types` method is only supported in the Python SDK version `12.0.0-beta.1` or later. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -252,7 +252,7 @@ def get_types(self, **kwargs): # noqa: E501 def get_types_with_http_info(self, **kwargs): # noqa: E501 """Event Types # noqa: E501 - This endpoint returns a list of event type names which are visible to you. You may use these event type names to query the API for specific event instances of a desired type. # noqa: E501 + This endpoint returns a list of event type names which are visible to you. You may use these event type names to query the API for specific event instances of a desired type. Note: the `get_types` method is only supported in the Python SDK version `12.0.0-beta.1` or later. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/hubspot/events/models/collection_response_external_unified_event.py b/hubspot/events/models/collection_response_external_unified_event.py index 300abc09..038074f5 100644 --- a/hubspot/events/models/collection_response_external_unified_event.py +++ b/hubspot/events/models/collection_response_external_unified_event.py @@ -78,7 +78,6 @@ def paging(self, paging): def results(self): """Gets the results of this CollectionResponseExternalUnifiedEvent. # noqa: E501 - # noqa: E501 :return: The results of this CollectionResponseExternalUnifiedEvent. # noqa: E501 :rtype: list[ExternalUnifiedEvent] @@ -89,7 +88,6 @@ def results(self): def results(self, results): """Sets the results of this CollectionResponseExternalUnifiedEvent. - # noqa: E501 :param results: The results of this CollectionResponseExternalUnifiedEvent. # noqa: E501 :type results: list[ExternalUnifiedEvent] diff --git a/hubspot/events/models/external_unified_event.py b/hubspot/events/models/external_unified_event.py index 59615782..b58030af 100644 --- a/hubspot/events/models/external_unified_event.py +++ b/hubspot/events/models/external_unified_event.py @@ -57,8 +57,7 @@ def __init__(self, occurred_at=None, event_type=None, id=None, object_id=None, p self.event_type = event_type self.id = id self.object_id = object_id - if properties is not None: - self.properties = properties + self.properties = properties self.object_type = object_type @property @@ -165,6 +164,7 @@ def object_id(self, object_id): def properties(self): """Gets the properties of this ExternalUnifiedEvent. # noqa: E501 + A key-value map of event-specific properties. The available properties depend on the event type definition. # noqa: E501 :return: The properties of this ExternalUnifiedEvent. # noqa: E501 :rtype: dict[str, str] @@ -175,10 +175,13 @@ def properties(self): def properties(self, properties): """Sets the properties of this ExternalUnifiedEvent. + A key-value map of event-specific properties. The available properties depend on the event type definition. # noqa: E501 :param properties: The properties of this ExternalUnifiedEvent. # noqa: E501 :type properties: dict[str, str] """ + if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 + raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 self._properties = properties diff --git a/hubspot/events/models/next_page.py b/hubspot/events/models/next_page.py index dea3baed..fb6c2b03 100644 --- a/hubspot/events/models/next_page.py +++ b/hubspot/events/models/next_page.py @@ -57,7 +57,7 @@ def __init__(self, link=None, after=None, local_vars_configuration=None): # noq def link(self): """Gets the link of this NextPage. # noqa: E501 - # 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 @@ -68,7 +68,7 @@ def link(self): def link(self, link): """Sets the link of this NextPage. - # noqa: E501 + 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 @@ -80,7 +80,7 @@ def link(self, link): def after(self): """Gets the after of this NextPage. # noqa: E501 - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :return: The after of this NextPage. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def after(self): def after(self, after): """Sets the after of this NextPage. - # noqa: E501 + A paging cursor token for retrieving subsequent pages. # noqa: E501 :param after: The after of this NextPage. # noqa: E501 :type after: str diff --git a/hubspot/events/models/previous_page.py b/hubspot/events/models/previous_page.py index 81a4d63e..10062103 100644 --- a/hubspot/events/models/previous_page.py +++ b/hubspot/events/models/previous_page.py @@ -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/events/send/api_client.py b/hubspot/events/send/api_client.py index d8eb26d1..a9ecd8b2 100644 --- a/hubspot/events/send/api_client.py +++ b/hubspot/events/send/api_client.py @@ -301,7 +301,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(hubspot.events.send.models, klass) + klass = getattr(hubspot.events1.send.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) From 2e1de4224a9113ea01c9b4b6bcd95b726f79dec9 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 18 Nov 2025 14:00:35 +0300 Subject: [PATCH 10/12] clean up --- hubspot/events/send/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hubspot/events/send/api_client.py b/hubspot/events/send/api_client.py index a9ecd8b2..d8eb26d1 100644 --- a/hubspot/events/send/api_client.py +++ b/hubspot/events/send/api_client.py @@ -301,7 +301,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(hubspot.events1.send.models, klass) + klass = getattr(hubspot.events.send.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) From 835289635d94dc4c950b5b8ba08fb4b157859e8e Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 18 Nov 2025 14:04:09 +0300 Subject: [PATCH 11/12] Codegen: OAuth --- hubspot/oauth/api/access_tokens_api.py | 10 ++++++---- hubspot/oauth/api/refresh_tokens_api.py | 20 +++++++++++-------- hubspot/oauth/api/tokens_api.py | 6 ++++-- .../models/access_token_info_response.py | 18 ----------------- .../models/refresh_token_info_response.py | 16 --------------- hubspot/oauth/models/token_response_if.py | 10 ---------- 6 files changed, 22 insertions(+), 58 deletions(-) diff --git a/hubspot/oauth/api/access_tokens_api.py b/hubspot/oauth/api/access_tokens_api.py index e073ec9e..21cbc35a 100644 --- a/hubspot/oauth/api/access_tokens_api.py +++ b/hubspot/oauth/api/access_tokens_api.py @@ -34,15 +34,16 @@ def __init__(self, api_client=None): self.api_client = api_client def get(self, token, **kwargs): # noqa: E501 - """get # noqa: E501 + """Retrieve OAuth token metadata # noqa: E501 + Retrieve a token's metadata, including the email address of the user that the token was created for and the ID of the account it's associated with. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The access token that you want to retrieve information about. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -63,15 +64,16 @@ def get(self, token, **kwargs): # noqa: E501 return self.get_with_http_info(token, **kwargs) # noqa: E501 def get_with_http_info(self, token, **kwargs): # noqa: E501 - """get # noqa: E501 + """Retrieve OAuth token metadata # noqa: E501 + Retrieve a token's metadata, including the email address of the user that the token was created for and the ID of the account it's associated with. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_with_http_info(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The access token that you want to retrieve information about. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional diff --git a/hubspot/oauth/api/refresh_tokens_api.py b/hubspot/oauth/api/refresh_tokens_api.py index f35f80e0..4aace850 100644 --- a/hubspot/oauth/api/refresh_tokens_api.py +++ b/hubspot/oauth/api/refresh_tokens_api.py @@ -34,15 +34,16 @@ def __init__(self, api_client=None): self.api_client = api_client def archive(self, token, **kwargs): # noqa: E501 - """archive # noqa: E501 + """Delete a refresh token # noqa: E501 + Delete a refresh token, typically after a user uninstalls your app. Access tokens generated with the refresh token will not be affected. This will not uninstall the application from HubSpot or inhibit data syncing between an account and the app. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The refresh token to delete. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -63,15 +64,16 @@ def archive(self, token, **kwargs): # noqa: E501 return self.archive_with_http_info(token, **kwargs) # noqa: E501 def archive_with_http_info(self, token, **kwargs): # noqa: E501 - """archive # noqa: E501 + """Delete a refresh token # noqa: E501 + Delete a refresh token, typically after a user uninstalls your app. Access tokens generated with the refresh token will not be affected. This will not uninstall the application from HubSpot or inhibit data syncing between an account and the app. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_with_http_info(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The refresh token to delete. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -153,15 +155,16 @@ def archive_with_http_info(self, token, **kwargs): # noqa: E501 ) def get(self, token, **kwargs): # noqa: E501 - """get # noqa: E501 + """Retrieve refresh token metadata # noqa: E501 + Retrieve a refresh token's metadata, including the email address of the user that the token was created for and the ID of the account it's associated with. Learn more about [refresh tokens](https://developers.hubspot.com/docs/guides/api/app-management/oauth-tokens#generate-initial-access-and-refresh-tokens). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The refresh token to retrieve information about. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -182,15 +185,16 @@ def get(self, token, **kwargs): # noqa: E501 return self.get_with_http_info(token, **kwargs) # noqa: E501 def get_with_http_info(self, token, **kwargs): # noqa: E501 - """get # noqa: E501 + """Retrieve refresh token metadata # noqa: E501 + Retrieve a refresh token's metadata, including the email address of the user that the token was created for and the ID of the account it's associated with. Learn more about [refresh tokens](https://developers.hubspot.com/docs/guides/api/app-management/oauth-tokens#generate-initial-access-and-refresh-tokens). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_with_http_info(token, async_req=True) >>> result = thread.get() - :param token: (required) + :param token: The refresh token to retrieve information about. (required) :type token: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional diff --git a/hubspot/oauth/api/tokens_api.py b/hubspot/oauth/api/tokens_api.py index 695fa6c8..bce38ca4 100644 --- a/hubspot/oauth/api/tokens_api.py +++ b/hubspot/oauth/api/tokens_api.py @@ -34,8 +34,9 @@ def __init__(self, api_client=None): self.api_client = api_client def create(self, **kwargs): # noqa: E501 - """create # noqa: E501 + """Refresh an access token # noqa: E501 + Use a [previously obtained refresh token](#get-oauth-2.0-access-and-refresh-tokens) to generate a new access token. Access tokens are short lived. You can check the `expires_in` parameter when generating an access token to determine its lifetime (in seconds). If you need offline access to HubSpot data, store the refresh token you get when [initiating your OAuth integration](https://developers.hubspot.com/docs/guides/api/app-management/oauth-tokens#initiating-oauth-access) and use it to generate a new access token once the initial one expires. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -73,8 +74,9 @@ def create(self, **kwargs): # noqa: E501 return self.create_with_http_info(**kwargs) # noqa: E501 def create_with_http_info(self, **kwargs): # noqa: E501 - """create # noqa: E501 + """Refresh an access token # noqa: E501 + Use a [previously obtained refresh token](#get-oauth-2.0-access-and-refresh-tokens) to generate a new access token. Access tokens are short lived. You can check the `expires_in` parameter when generating an access token to determine its lifetime (in seconds). If you need offline access to HubSpot data, store the refresh token you get when [initiating your OAuth integration](https://developers.hubspot.com/docs/guides/api/app-management/oauth-tokens#initiating-oauth-access) and use it to generate a new access token once the initial one expires. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/hubspot/oauth/models/access_token_info_response.py b/hubspot/oauth/models/access_token_info_response.py index 16f6913a..f4cb42d1 100644 --- a/hubspot/oauth/models/access_token_info_response.py +++ b/hubspot/oauth/models/access_token_info_response.py @@ -82,7 +82,6 @@ def __init__(self, hub_id=None, user_id=None, scopes=None, token_type=None, user def hub_id(self): """Gets the hub_id of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The hub_id of this AccessTokenInfoResponse. # noqa: E501 :rtype: int @@ -93,7 +92,6 @@ def hub_id(self): def hub_id(self, hub_id): """Sets the hub_id of this AccessTokenInfoResponse. - # noqa: E501 :param hub_id: The hub_id of this AccessTokenInfoResponse. # noqa: E501 :type hub_id: int @@ -107,7 +105,6 @@ def hub_id(self, hub_id): def user_id(self): """Gets the user_id of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The user_id of this AccessTokenInfoResponse. # noqa: E501 :rtype: int @@ -118,7 +115,6 @@ def user_id(self): def user_id(self, user_id): """Sets the user_id of this AccessTokenInfoResponse. - # noqa: E501 :param user_id: The user_id of this AccessTokenInfoResponse. # noqa: E501 :type user_id: int @@ -132,7 +128,6 @@ def user_id(self, user_id): def scopes(self): """Gets the scopes of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The scopes of this AccessTokenInfoResponse. # noqa: E501 :rtype: list[str] @@ -143,7 +138,6 @@ def scopes(self): def scopes(self, scopes): """Sets the scopes of this AccessTokenInfoResponse. - # noqa: E501 :param scopes: The scopes of this AccessTokenInfoResponse. # noqa: E501 :type scopes: list[str] @@ -157,7 +151,6 @@ def scopes(self, scopes): def token_type(self): """Gets the token_type of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The token_type of this AccessTokenInfoResponse. # noqa: E501 :rtype: str @@ -168,7 +161,6 @@ def token_type(self): def token_type(self, token_type): """Sets the token_type of this AccessTokenInfoResponse. - # noqa: E501 :param token_type: The token_type of this AccessTokenInfoResponse. # noqa: E501 :type token_type: str @@ -182,7 +174,6 @@ def token_type(self, token_type): def user(self): """Gets the user of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The user of this AccessTokenInfoResponse. # noqa: E501 :rtype: str @@ -193,7 +184,6 @@ def user(self): def user(self, user): """Sets the user of this AccessTokenInfoResponse. - # noqa: E501 :param user: The user of this AccessTokenInfoResponse. # noqa: E501 :type user: str @@ -205,7 +195,6 @@ def user(self, user): def hub_domain(self): """Gets the hub_domain of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The hub_domain of this AccessTokenInfoResponse. # noqa: E501 :rtype: str @@ -216,7 +205,6 @@ def hub_domain(self): def hub_domain(self, hub_domain): """Sets the hub_domain of this AccessTokenInfoResponse. - # noqa: E501 :param hub_domain: The hub_domain of this AccessTokenInfoResponse. # noqa: E501 :type hub_domain: str @@ -228,7 +216,6 @@ def hub_domain(self, hub_domain): def app_id(self): """Gets the app_id of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The app_id of this AccessTokenInfoResponse. # noqa: E501 :rtype: int @@ -239,7 +226,6 @@ def app_id(self): def app_id(self, app_id): """Sets the app_id of this AccessTokenInfoResponse. - # noqa: E501 :param app_id: The app_id of this AccessTokenInfoResponse. # noqa: E501 :type app_id: int @@ -253,7 +239,6 @@ def app_id(self, app_id): def expires_in(self): """Gets the expires_in of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The expires_in of this AccessTokenInfoResponse. # noqa: E501 :rtype: int @@ -264,7 +249,6 @@ def expires_in(self): def expires_in(self, expires_in): """Sets the expires_in of this AccessTokenInfoResponse. - # noqa: E501 :param expires_in: The expires_in of this AccessTokenInfoResponse. # noqa: E501 :type expires_in: int @@ -278,7 +262,6 @@ def expires_in(self, expires_in): def token(self): """Gets the token of this AccessTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The token of this AccessTokenInfoResponse. # noqa: E501 :rtype: str @@ -289,7 +272,6 @@ def token(self): def token(self, token): """Sets the token of this AccessTokenInfoResponse. - # noqa: E501 :param token: The token of this AccessTokenInfoResponse. # noqa: E501 :type token: str diff --git a/hubspot/oauth/models/refresh_token_info_response.py b/hubspot/oauth/models/refresh_token_info_response.py index 72a1f0cc..fb15becc 100644 --- a/hubspot/oauth/models/refresh_token_info_response.py +++ b/hubspot/oauth/models/refresh_token_info_response.py @@ -70,7 +70,6 @@ def __init__(self, hub_id=None, user_id=None, scopes=None, token_type=None, user def hub_id(self): """Gets the hub_id of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The hub_id of this RefreshTokenInfoResponse. # noqa: E501 :rtype: int @@ -81,7 +80,6 @@ def hub_id(self): def hub_id(self, hub_id): """Sets the hub_id of this RefreshTokenInfoResponse. - # noqa: E501 :param hub_id: The hub_id of this RefreshTokenInfoResponse. # noqa: E501 :type hub_id: int @@ -95,7 +93,6 @@ def hub_id(self, hub_id): def user_id(self): """Gets the user_id of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The user_id of this RefreshTokenInfoResponse. # noqa: E501 :rtype: int @@ -106,7 +103,6 @@ def user_id(self): def user_id(self, user_id): """Sets the user_id of this RefreshTokenInfoResponse. - # noqa: E501 :param user_id: The user_id of this RefreshTokenInfoResponse. # noqa: E501 :type user_id: int @@ -120,7 +116,6 @@ def user_id(self, user_id): def scopes(self): """Gets the scopes of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The scopes of this RefreshTokenInfoResponse. # noqa: E501 :rtype: list[str] @@ -131,7 +126,6 @@ def scopes(self): def scopes(self, scopes): """Sets the scopes of this RefreshTokenInfoResponse. - # noqa: E501 :param scopes: The scopes of this RefreshTokenInfoResponse. # noqa: E501 :type scopes: list[str] @@ -145,7 +139,6 @@ def scopes(self, scopes): def token_type(self): """Gets the token_type of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The token_type of this RefreshTokenInfoResponse. # noqa: E501 :rtype: str @@ -156,7 +149,6 @@ def token_type(self): def token_type(self, token_type): """Sets the token_type of this RefreshTokenInfoResponse. - # noqa: E501 :param token_type: The token_type of this RefreshTokenInfoResponse. # noqa: E501 :type token_type: str @@ -170,7 +162,6 @@ def token_type(self, token_type): def user(self): """Gets the user of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The user of this RefreshTokenInfoResponse. # noqa: E501 :rtype: str @@ -181,7 +172,6 @@ def user(self): def user(self, user): """Sets the user of this RefreshTokenInfoResponse. - # noqa: E501 :param user: The user of this RefreshTokenInfoResponse. # noqa: E501 :type user: str @@ -193,7 +183,6 @@ def user(self, user): def hub_domain(self): """Gets the hub_domain of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The hub_domain of this RefreshTokenInfoResponse. # noqa: E501 :rtype: str @@ -204,7 +193,6 @@ def hub_domain(self): def hub_domain(self, hub_domain): """Sets the hub_domain of this RefreshTokenInfoResponse. - # noqa: E501 :param hub_domain: The hub_domain of this RefreshTokenInfoResponse. # noqa: E501 :type hub_domain: str @@ -216,7 +204,6 @@ def hub_domain(self, hub_domain): def client_id(self): """Gets the client_id of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The client_id of this RefreshTokenInfoResponse. # noqa: E501 :rtype: str @@ -227,7 +214,6 @@ def client_id(self): def client_id(self, client_id): """Sets the client_id of this RefreshTokenInfoResponse. - # noqa: E501 :param client_id: The client_id of this RefreshTokenInfoResponse. # noqa: E501 :type client_id: str @@ -241,7 +227,6 @@ def client_id(self, client_id): def token(self): """Gets the token of this RefreshTokenInfoResponse. # noqa: E501 - # noqa: E501 :return: The token of this RefreshTokenInfoResponse. # noqa: E501 :rtype: str @@ -252,7 +237,6 @@ def token(self): def token(self, token): """Sets the token of this RefreshTokenInfoResponse. - # noqa: E501 :param token: The token of this RefreshTokenInfoResponse. # noqa: E501 :type token: str diff --git a/hubspot/oauth/models/token_response_if.py b/hubspot/oauth/models/token_response_if.py index 39d855d0..38a0dd4f 100644 --- a/hubspot/oauth/models/token_response_if.py +++ b/hubspot/oauth/models/token_response_if.py @@ -63,7 +63,6 @@ def __init__(self, access_token=None, refresh_token=None, id_token=None, token_t def access_token(self): """Gets the access_token of this TokenResponseIF. # noqa: E501 - # noqa: E501 :return: The access_token of this TokenResponseIF. # noqa: E501 :rtype: str @@ -74,7 +73,6 @@ def access_token(self): def access_token(self, access_token): """Sets the access_token of this TokenResponseIF. - # noqa: E501 :param access_token: The access_token of this TokenResponseIF. # noqa: E501 :type access_token: str @@ -88,7 +86,6 @@ def access_token(self, access_token): def refresh_token(self): """Gets the refresh_token of this TokenResponseIF. # noqa: E501 - # noqa: E501 :return: The refresh_token of this TokenResponseIF. # noqa: E501 :rtype: str @@ -99,7 +96,6 @@ def refresh_token(self): def refresh_token(self, refresh_token): """Sets the refresh_token of this TokenResponseIF. - # noqa: E501 :param refresh_token: The refresh_token of this TokenResponseIF. # noqa: E501 :type refresh_token: str @@ -113,7 +109,6 @@ def refresh_token(self, refresh_token): def id_token(self): """Gets the id_token of this TokenResponseIF. # noqa: E501 - # noqa: E501 :return: The id_token of this TokenResponseIF. # noqa: E501 :rtype: str @@ -124,7 +119,6 @@ def id_token(self): def id_token(self, id_token): """Sets the id_token of this TokenResponseIF. - # noqa: E501 :param id_token: The id_token of this TokenResponseIF. # noqa: E501 :type id_token: str @@ -136,7 +130,6 @@ def id_token(self, id_token): def token_type(self): """Gets the token_type of this TokenResponseIF. # noqa: E501 - # noqa: E501 :return: The token_type of this TokenResponseIF. # noqa: E501 :rtype: str @@ -147,7 +140,6 @@ def token_type(self): def token_type(self, token_type): """Sets the token_type of this TokenResponseIF. - # noqa: E501 :param token_type: The token_type of this TokenResponseIF. # noqa: E501 :type token_type: str @@ -161,7 +153,6 @@ def token_type(self, token_type): def expires_in(self): """Gets the expires_in of this TokenResponseIF. # noqa: E501 - # noqa: E501 :return: The expires_in of this TokenResponseIF. # noqa: E501 :rtype: int @@ -172,7 +163,6 @@ def expires_in(self): def expires_in(self, expires_in): """Sets the expires_in of this TokenResponseIF. - # noqa: E501 :param expires_in: The expires_in of this TokenResponseIF. # noqa: E501 :type expires_in: int From 9f8a20f68fec267a58ebf0c1545a0f3a72865e38 Mon Sep 17 00:00:00 2001 From: alexey Date: Tue, 9 Dec 2025 12:14:39 +0300 Subject: [PATCH 12/12] Codegen: CMS SourceCode --- hubspot/cms/source_code/__init__.py | 2 +- hubspot/cms/source_code/api/content_api.py | 14 +- hubspot/cms/source_code/api/extract_api.py | 2 +- hubspot/cms/source_code/api/metadata_api.py | 2 +- hubspot/cms/source_code/api/validation_api.py | 25 ++- hubspot/cms/source_code/api_client.py | 2 +- hubspot/cms/source_code/configuration.py | 2 +- hubspot/cms/source_code/exceptions.py | 2 +- hubspot/cms/source_code/models/__init__.py | 2 +- .../cms/source_code/models/action_response.py | 58 +++---- .../source_code/models/asset_file_metadata.py | 164 +++++++++--------- hubspot/cms/source_code/models/error.py | 122 ++++++------- .../cms/source_code/models/error_detail.py | 112 ++++++------ .../models/file_extract_request.py | 2 +- .../cms/source_code/models/task_locator.py | 54 +++--- hubspot/cms/source_code/rest.py | 2 +- 16 files changed, 291 insertions(+), 276 deletions(-) diff --git a/hubspot/cms/source_code/__init__.py b/hubspot/cms/source_code/__init__.py index da4f9af7..f6a3feb1 100644 --- a/hubspot/cms/source_code/__init__.py +++ b/hubspot/cms/source_code/__init__.py @@ -5,7 +5,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/api/content_api.py b/hubspot/cms/source_code/api/content_api.py index 7f0ed03c..3f82d81e 100644 --- a/hubspot/cms/source_code/api/content_api.py +++ b/hubspot/cms/source_code/api/content_api.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -482,7 +482,7 @@ def download(self, environment, path, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: Error + :rtype: file """ kwargs["_return_http_data_only"] = True return self.download_with_http_info(environment, path, **kwargs) # noqa: E501 @@ -522,7 +522,7 @@ def download_with_http_info(self, environment, path, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(Error, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(file, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -561,12 +561,16 @@ def download_with_http_info(self, environment, path, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` - header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # noqa: E501 + header_params["Accept"] = self.api_client.select_header_accept(["application/octet-stream", "*/*"]) # noqa: E501 # Authentication setting auth_settings = ["oauth2"] # noqa: E501 - response_types_map = {} + response_types_map = { + 200: "file", + 403: None, + 404: None, + } return self.api_client.call_api( "/cms/v3/source-code/{environment}/content/{path}", diff --git a/hubspot/cms/source_code/api/extract_api.py b/hubspot/cms/source_code/api/extract_api.py index c4119516..92d87d8b 100644 --- a/hubspot/cms/source_code/api/extract_api.py +++ b/hubspot/cms/source_code/api/extract_api.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/api/metadata_api.py b/hubspot/cms/source_code/api/metadata_api.py index a81b5d79..f4b79735 100644 --- a/hubspot/cms/source_code/api/metadata_api.py +++ b/hubspot/cms/source_code/api/metadata_api.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/api/validation_api.py b/hubspot/cms/source_code/api/validation_api.py index c7c8f027..ab888de4 100644 --- a/hubspot/cms/source_code/api/validation_api.py +++ b/hubspot/cms/source_code/api/validation_api.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -33,16 +33,18 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def do_validate(self, path, **kwargs): # noqa: E501 + def do_validate(self, environment, path, **kwargs): # noqa: E501 """Validate the contents of a file # noqa: E501 Validates the file contents passed to the endpoint given a specified path and environment. Accepts multipart/form-data content type. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.do_validate(path, async_req=True) + >>> thread = api.do_validate(environment, path, async_req=True) >>> result = thread.get() + :param environment: (required) + :type environment: str :param path: The file system location of the file. (required) :type path: str :param file: @@ -63,18 +65,20 @@ def do_validate(self, path, **kwargs): # noqa: E501 :rtype: Error """ kwargs["_return_http_data_only"] = True - return self.do_validate_with_http_info(path, **kwargs) # noqa: E501 + return self.do_validate_with_http_info(environment, path, **kwargs) # noqa: E501 - def do_validate_with_http_info(self, path, **kwargs): # noqa: E501 + def do_validate_with_http_info(self, environment, path, **kwargs): # noqa: E501 """Validate the contents of a file # noqa: E501 Validates the file contents passed to the endpoint given a specified path and environment. Accepts multipart/form-data content type. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.do_validate_with_http_info(path, async_req=True) + >>> thread = api.do_validate_with_http_info(environment, path, async_req=True) >>> result = thread.get() + :param environment: (required) + :type environment: str :param path: The file system location of the file. (required) :type path: str :param file: @@ -105,7 +109,7 @@ def do_validate_with_http_info(self, path, **kwargs): # noqa: E501 local_var_params = locals() - all_params = ["path", "file"] + all_params = ["environment", "path", "file"] all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"]) for key, val in six.iteritems(local_var_params["kwargs"]): @@ -113,15 +117,22 @@ def do_validate_with_http_info(self, path, **kwargs): # noqa: E501 raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method do_validate" % key) local_var_params[key] = val del local_var_params["kwargs"] + # verify the required parameter 'environment' is set + if self.api_client.client_side_validation and local_var_params.get("environment") is None: # noqa: E501 + raise ApiValueError("Missing the required parameter `environment` when calling `do_validate`") # noqa: E501 # verify the required parameter 'path' is set if self.api_client.client_side_validation and local_var_params.get("path") is None: # noqa: E501 raise ApiValueError("Missing the required parameter `path` when calling `do_validate`") # noqa: E501 + if self.api_client.client_side_validation and "environment" in local_var_params and not re.search(r".+", local_var_params["environment"]): # noqa: E501 + raise ApiValueError("Invalid value for parameter `environment` when calling `do_validate`, must conform to the pattern `/.+/`") # noqa: E501 if self.api_client.client_side_validation and "path" in local_var_params and not re.search(r".+", local_var_params["path"]): # noqa: E501 raise ApiValueError("Invalid value for parameter `path` when calling `do_validate`, must conform to the pattern `/.+/`") # noqa: E501 collection_formats = {} path_params = {} + if "environment" in local_var_params: + path_params["environment"] = local_var_params["environment"] # noqa: E501 if "path" in local_var_params: path_params["path"] = local_var_params["path"] # noqa: E501 diff --git a/hubspot/cms/source_code/api_client.py b/hubspot/cms/source_code/api_client.py index c83d5292..92c06055 100644 --- a/hubspot/cms/source_code/api_client.py +++ b/hubspot/cms/source_code/api_client.py @@ -2,7 +2,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/configuration.py b/hubspot/cms/source_code/configuration.py index 1c94a59a..4d7d18ac 100644 --- a/hubspot/cms/source_code/configuration.py +++ b/hubspot/cms/source_code/configuration.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/exceptions.py b/hubspot/cms/source_code/exceptions.py index 2425f556..83f74a4f 100644 --- a/hubspot/cms/source_code/exceptions.py +++ b/hubspot/cms/source_code/exceptions.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/models/__init__.py b/hubspot/cms/source_code/models/__init__.py index 5d7b5050..2c69ed4f 100644 --- a/hubspot/cms/source_code/models/__init__.py +++ b/hubspot/cms/source_code/models/__init__.py @@ -4,7 +4,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/models/action_response.py b/hubspot/cms/source_code/models/action_response.py index 77f41658..fb103275 100644 --- a/hubspot/cms/source_code/models/action_response.py +++ b/hubspot/cms/source_code/models/action_response.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,29 +35,29 @@ class ActionResponse(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]", "status": "str"} + openapi_types = {"completed_at": "datetime", "links": "dict[str, str]", "requested_at": "datetime", "started_at": "datetime", "status": "str"} - attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "status": "status"} + attribute_map = {"completed_at": "completedAt", "links": "links", "requested_at": "requestedAt", "started_at": "startedAt", "status": "status"} - def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, status=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, links=None, requested_at=None, started_at=None, status=None, local_vars_configuration=None): # noqa: E501 """ActionResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._completed_at = None + self._links = None self._requested_at = None self._started_at = None - self._links = None self._status = None self.discriminator = None self.completed_at = completed_at + if links is not None: + self.links = links 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.status = status @property @@ -83,6 +83,27 @@ def completed_at(self, completed_at): self._completed_at = completed_at + @property + def links(self): + """Gets the links of this ActionResponse. # noqa: E501 + + + :return: The links of this ActionResponse. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ActionResponse. + + + :param links: The links of this ActionResponse. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + @property def requested_at(self): """Gets the requested_at of this ActionResponse. # noqa: E501 @@ -127,27 +148,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def links(self): - """Gets the links of this ActionResponse. # noqa: E501 - - - :return: The links of this ActionResponse. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this ActionResponse. - - - :param links: The links of this ActionResponse. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - @property def status(self): """Gets the status of this ActionResponse. # noqa: E501 @@ -168,7 +168,7 @@ def status(self, status): """ 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/cms/source_code/models/asset_file_metadata.py b/hubspot/cms/source_code/models/asset_file_metadata.py index 2acee5a4..82422c63 100644 --- a/hubspot/cms/source_code/models/asset_file_metadata.py +++ b/hubspot/cms/source_code/models/asset_file_metadata.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,38 +35,84 @@ class AssetFileMetadata(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"created_at": "int", "archived_at": "int", "folder": "bool", "children": "list[str]", "name": "str", "id": "str", "hash": "str", "updated_at": "int"} + openapi_types = {"archived_at": "int", "children": "list[str]", "created_at": "int", "folder": "bool", "hash": "str", "id": "str", "name": "str", "updated_at": "int"} - attribute_map = {"created_at": "createdAt", "archived_at": "archivedAt", "folder": "folder", "children": "children", "name": "name", "id": "id", "hash": "hash", "updated_at": "updatedAt"} + attribute_map = {"archived_at": "archivedAt", "children": "children", "created_at": "createdAt", "folder": "folder", "hash": "hash", "id": "id", "name": "name", "updated_at": "updatedAt"} - def __init__(self, created_at=None, archived_at=None, folder=None, children=None, name=None, id=None, hash=None, updated_at=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, archived_at=None, children=None, created_at=None, folder=None, hash=None, id=None, name=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """AssetFileMetadata - 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_at = None - self._folder = None self._children = None - self._name = None - self._id = None + self._created_at = None + self._folder = None self._hash = None + self._id = None + self._name = None self._updated_at = None self.discriminator = None - self.created_at = created_at if archived_at is not None: self.archived_at = archived_at - self.folder = folder if children is not None: self.children = children - self.name = name - self.id = id + self.created_at = created_at + self.folder = folder if hash is not None: self.hash = hash + self.id = id + self.name = name self.updated_at = updated_at + @property + def archived_at(self): + """Gets the archived_at of this AssetFileMetadata. # noqa: E501 + + Timestamp of when the object was archived (deleted). # noqa: E501 + + :return: The archived_at of this AssetFileMetadata. # noqa: E501 + :rtype: int + """ + return self._archived_at + + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this AssetFileMetadata. + + Timestamp of when the object was archived (deleted). # noqa: E501 + + :param archived_at: The archived_at of this AssetFileMetadata. # noqa: E501 + :type archived_at: int + """ + + self._archived_at = archived_at + + @property + def children(self): + """Gets the children of this AssetFileMetadata. # noqa: E501 + + If the object is a folder, contains the filenames of the files within the folder. # noqa: E501 + + :return: The children of this AssetFileMetadata. # noqa: E501 + :rtype: list[str] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this AssetFileMetadata. + + If the object is a folder, contains the filenames of the files within the folder. # noqa: E501 + + :param children: The children of this AssetFileMetadata. # noqa: E501 + :type children: list[str] + """ + + self._children = children + @property def created_at(self): """Gets the created_at of this AssetFileMetadata. # noqa: E501 @@ -92,29 +138,6 @@ def created_at(self, created_at): self._created_at = created_at - @property - def archived_at(self): - """Gets the archived_at of this AssetFileMetadata. # noqa: E501 - - Timestamp of when the object was archived (deleted). # noqa: E501 - - :return: The archived_at of this AssetFileMetadata. # noqa: E501 - :rtype: int - """ - return self._archived_at - - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this AssetFileMetadata. - - Timestamp of when the object was archived (deleted). # noqa: E501 - - :param archived_at: The archived_at of this AssetFileMetadata. # noqa: E501 - :type archived_at: int - """ - - self._archived_at = archived_at - @property def folder(self): """Gets the folder of this AssetFileMetadata. # noqa: E501 @@ -141,52 +164,25 @@ def folder(self, folder): self._folder = folder @property - def children(self): - """Gets the children of this AssetFileMetadata. # noqa: E501 - - If the object is a folder, contains the filenames of the files within the folder. # noqa: E501 - - :return: The children of this AssetFileMetadata. # noqa: E501 - :rtype: list[str] - """ - return self._children - - @children.setter - def children(self, children): - """Sets the children of this AssetFileMetadata. - - If the object is a folder, contains the filenames of the files within the folder. # noqa: E501 - - :param children: The children of this AssetFileMetadata. # noqa: E501 - :type children: list[str] - """ - - self._children = children - - @property - def name(self): - """Gets the name of this AssetFileMetadata. # noqa: E501 + def hash(self): + """Gets the hash of this AssetFileMetadata. # noqa: E501 - The name of the file. # noqa: E501 - :return: The name of this AssetFileMetadata. # noqa: E501 + :return: The hash of this AssetFileMetadata. # noqa: E501 :rtype: str """ - return self._name + return self._hash - @name.setter - def name(self, name): - """Sets the name of this AssetFileMetadata. + @hash.setter + def hash(self, hash): + """Sets the hash of this AssetFileMetadata. - The name of the file. # noqa: E501 - :param name: The name of this AssetFileMetadata. # noqa: E501 - :type name: str + :param hash: The hash of this AssetFileMetadata. # noqa: E501 + :type hash: str """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._hash = hash @property def id(self): @@ -214,25 +210,29 @@ def id(self, id): self._id = id @property - def hash(self): - """Gets the hash of this AssetFileMetadata. # noqa: E501 + def name(self): + """Gets the name of this AssetFileMetadata. # noqa: E501 + The name of the file. # noqa: E501 - :return: The hash of this AssetFileMetadata. # noqa: E501 + :return: The name of this AssetFileMetadata. # noqa: E501 :rtype: str """ - return self._hash + return self._name - @hash.setter - def hash(self, hash): - """Sets the hash of this AssetFileMetadata. + @name.setter + def name(self, name): + """Sets the name of this AssetFileMetadata. + The name of the file. # noqa: E501 - :param hash: The hash of this AssetFileMetadata. # noqa: E501 - :type hash: str + :param name: The name of this AssetFileMetadata. # noqa: E501 + :type name: str """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._hash = hash + self._name = name @property def updated_at(self): diff --git a/hubspot/cms/source_code/models/error.py b/hubspot/cms/source_code/models/error.py index 14eb67d5..d8a28a9d 100644 --- a/hubspot/cms/source_code/models/error.py +++ b/hubspot/cms/source_code/models/error.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # 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/cms/source_code/models/error_detail.py b/hubspot/cms/source_code/models/error_detail.py index b880260d..33831dba 100644 --- a/hubspot/cms/source_code/models/error_detail.py +++ b/hubspot/cms/source_code/models/error_detail.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # 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/cms/source_code/models/file_extract_request.py b/hubspot/cms/source_code/models/file_extract_request.py index 968b778a..93c8322e 100644 --- a/hubspot/cms/source_code/models/file_extract_request.py +++ b/hubspot/cms/source_code/models/file_extract_request.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/cms/source_code/models/task_locator.py b/hubspot/cms/source_code/models/task_locator.py index c9d8b963..def474d4 100644 --- a/hubspot/cms/source_code/models/task_locator.py +++ b/hubspot/cms/source_code/models/task_locator.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,44 +35,23 @@ class TaskLocator(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"links": "dict[str, str]", "id": "str"} + openapi_types = {"id": "str", "links": "dict[str, str]"} - attribute_map = {"links": "links", "id": "id"} + attribute_map = {"id": "id", "links": "links"} - def __init__(self, links=None, id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id=None, links=None, local_vars_configuration=None): # noqa: E501 """TaskLocator - 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._links = None self._id = None + self._links = None self.discriminator = None + self.id = id if links is not None: self.links = links - self.id = id - - @property - def links(self): - """Gets the links of this TaskLocator. # noqa: E501 - - - :return: The links of this TaskLocator. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this TaskLocator. - - - :param links: The links of this TaskLocator. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links @property def id(self): @@ -97,6 +76,27 @@ def id(self, id): self._id = id + @property + def links(self): + """Gets the links of this TaskLocator. # noqa: E501 + + + :return: The links of this TaskLocator. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this TaskLocator. + + + :param links: The links of this TaskLocator. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/cms/source_code/rest.py b/hubspot/cms/source_code/rest.py index 7abaf56d..fe784f6a 100644 --- a/hubspot/cms/source_code/rest.py +++ b/hubspot/cms/source_code/rest.py @@ -3,7 +3,7 @@ """ CMS Source Code - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + API for managing and retrieving source code files and metadata # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech