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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions hubspot/webhooks/api/settings_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 clear(self, app_id, **kwargs): # noqa: E501
"""clear # noqa: E501
"""Delete webhook settings # noqa: E501

Delete the webhook settings for the specified app. Event subscriptions will not be deleted, but will be paused until another webhook is created. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.clear(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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -63,15 +64,16 @@ def clear(self, app_id, **kwargs): # noqa: E501
return self.clear_with_http_info(app_id, **kwargs) # noqa: E501

def clear_with_http_info(self, app_id, **kwargs): # noqa: E501
"""clear # noqa: E501
"""Delete webhook settings # noqa: E501

Delete the webhook settings for the specified app. Event subscriptions will not be deleted, but will be paused until another webhook is created. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.clear_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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -153,15 +155,16 @@ def clear_with_http_info(self, app_id, **kwargs): # noqa: E501
)

def configure(self, app_id, settings_change_request, **kwargs): # noqa: E501
"""configure # noqa: E501
"""Update webhook settings # noqa: E501

Update webhook settings for the specified 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.configure(app_id, settings_change_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param settings_change_request: (required)
:type settings_change_request: SettingsChangeRequest
Expand All @@ -184,15 +187,16 @@ def configure(self, app_id, settings_change_request, **kwargs): # noqa: E501
return self.configure_with_http_info(app_id, settings_change_request, **kwargs) # noqa: E501

def configure_with_http_info(self, app_id, settings_change_request, **kwargs): # noqa: E501
"""configure # noqa: E501
"""Update webhook settings # noqa: E501

Update webhook settings for the specified 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.configure_with_http_info(app_id, settings_change_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param settings_change_request: (required)
:type settings_change_request: SettingsChangeRequest
Expand Down Expand Up @@ -288,15 +292,16 @@ def configure_with_http_info(self, app_id, settings_change_request, **kwargs):
)

def get_all(self, app_id, **kwargs): # noqa: E501
"""get_all # noqa: E501
"""Read webhook settings # noqa: E501

Retrieve the webhook settings for the specified app, including the webhook’s target URL, throttle configuration, and create/update date. # 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_all(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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -317,15 +322,16 @@ def get_all(self, app_id, **kwargs): # noqa: E501
return self.get_all_with_http_info(app_id, **kwargs) # noqa: E501

def get_all_with_http_info(self, app_id, **kwargs): # noqa: E501
"""get_all # noqa: E501
"""Read webhook settings # noqa: E501

Retrieve the webhook settings for the specified app, including the webhook’s target URL, throttle configuration, and create/update date. # 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_all_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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
72 changes: 42 additions & 30 deletions hubspot/webhooks/api/subscriptions_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, subscription_id, app_id, **kwargs): # noqa: E501
"""archive # noqa: E501
"""Delete event subscription # noqa: E501

Delete an existing event subscription 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(subscription_id, app_id, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
: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, subscription_id, app_id, **kwargs): # noqa: E501
return self.archive_with_http_info(subscription_id, app_id, **kwargs) # noqa: E501

def archive_with_http_info(self, subscription_id, app_id, **kwargs): # noqa: E501
"""archive # noqa: E501
"""Delete event subscription # noqa: E501

Delete an existing event subscription 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(subscription_id, app_id, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
: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, subscription_id, app_id, **kwargs): # noqa: E5
)

def create(self, app_id, subscription_create_request, **kwargs): # noqa: E501
"""create # noqa: E501
"""Create an event subscription # noqa: E501

Create new event subscription for the specified 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.create(app_id, subscription_create_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param subscription_create_request: (required)
:type subscription_create_request: SubscriptionCreateRequest
Expand All @@ -193,15 +196,16 @@ def create(self, app_id, subscription_create_request, **kwargs): # noqa: E501
return self.create_with_http_info(app_id, subscription_create_request, **kwargs) # noqa: E501

def create_with_http_info(self, app_id, subscription_create_request, **kwargs): # noqa: E501
"""create # noqa: E501
"""Create an event subscription # noqa: E501

Create new event subscription for the specified 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.create_with_http_info(app_id, subscription_create_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param subscription_create_request: (required)
:type subscription_create_request: SubscriptionCreateRequest
Expand Down Expand Up @@ -297,15 +301,16 @@ def create_with_http_info(self, app_id, subscription_create_request, **kwargs):
)

def get_all(self, app_id, **kwargs): # noqa: E501
"""get_all # noqa: E501
"""Read event subscriptions # noqa: E501

Retrieve event subscriptions for the specified 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.get_all(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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -326,15 +331,16 @@ def get_all(self, app_id, **kwargs): # noqa: E501
return self.get_all_with_http_info(app_id, **kwargs) # noqa: E501

def get_all_with_http_info(self, app_id, **kwargs): # noqa: E501
"""get_all # noqa: E501
"""Read event subscriptions # noqa: E501

Retrieve event subscriptions for the specified 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.get_all_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 async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -418,17 +424,18 @@ def get_all_with_http_info(self, app_id, **kwargs): # noqa: E501
)

def get_by_id(self, subscription_id, app_id, **kwargs): # noqa: E501
"""get_by_id # noqa: E501
"""Read an event subscription # noqa: E501

Retrieve a specific event subscription 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(subscription_id, app_id, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
: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 @@ -449,17 +456,18 @@ def get_by_id(self, subscription_id, app_id, **kwargs): # noqa: E501
return self.get_by_id_with_http_info(subscription_id, app_id, **kwargs) # noqa: E501

def get_by_id_with_http_info(self, subscription_id, app_id, **kwargs): # noqa: E501
"""get_by_id # noqa: E501
"""Read an event subscription # noqa: E501

Retrieve a specific event subscription 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(subscription_id, app_id, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
: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 @@ -548,17 +556,18 @@ def get_by_id_with_http_info(self, subscription_id, app_id, **kwargs): # noqa:
)

def update(self, subscription_id, app_id, subscription_patch_request, **kwargs): # noqa: E501
"""update # noqa: E501
"""Update an event subscription # noqa: E501

Update an existing event subscription 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(subscription_id, app_id, subscription_patch_request, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param subscription_patch_request: (required)
:type subscription_patch_request: SubscriptionPatchRequest
Expand All @@ -581,17 +590,18 @@ def update(self, subscription_id, app_id, subscription_patch_request, **kwargs):
return self.update_with_http_info(subscription_id, app_id, subscription_patch_request, **kwargs) # noqa: E501

def update_with_http_info(self, subscription_id, app_id, subscription_patch_request, **kwargs): # noqa: E501
"""update # noqa: E501
"""Update an event subscription # noqa: E501

Update an existing event subscription 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(subscription_id, app_id, subscription_patch_request, async_req=True)
>>> result = thread.get()

:param subscription_id: (required)
:param subscription_id: The ID of the event subscription. (required)
:type subscription_id: int
:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param subscription_patch_request: (required)
:type subscription_patch_request: SubscriptionPatchRequest
Expand Down Expand Up @@ -692,15 +702,16 @@ def update_with_http_info(self, subscription_id, app_id, subscription_patch_requ
)

def update_batch(self, app_id, batch_input_subscription_batch_update_request, **kwargs): # noqa: E501
"""update_batch # noqa: E501
"""Batch create event subscriptions # noqa: E501

Batch create event subscriptions for the specified 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.update_batch(app_id, batch_input_subscription_batch_update_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param batch_input_subscription_batch_update_request: (required)
:type batch_input_subscription_batch_update_request: BatchInputSubscriptionBatchUpdateRequest
Expand All @@ -723,15 +734,16 @@ def update_batch(self, app_id, batch_input_subscription_batch_update_request, **
return self.update_batch_with_http_info(app_id, batch_input_subscription_batch_update_request, **kwargs) # noqa: E501

def update_batch_with_http_info(self, app_id, batch_input_subscription_batch_update_request, **kwargs): # noqa: E501
"""update_batch # noqa: E501
"""Batch create event subscriptions # noqa: E501

Batch create event subscriptions for the specified 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.update_batch_with_http_info(app_id, batch_input_subscription_batch_update_request, async_req=True)
>>> result = thread.get()

:param app_id: (required)
:param app_id: The ID of the app. (required)
:type app_id: int
:param batch_input_subscription_batch_update_request: (required)
:type batch_input_subscription_batch_update_request: BatchInputSubscriptionBatchUpdateRequest
Expand Down
Loading