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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions hubspot/automation/actions/api/callbacks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
62 changes: 36 additions & 26 deletions hubspot/automation/actions/api/definitions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading