TriggersOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:triggers> attribute.
- Inheritance
-
builtins.objectTriggersOperations
Constructor
TriggersOperations(*args, **kwargs)
Methods
begin_start |
Starts a trigger. |
begin_stop |
Stops a trigger. |
begin_subscribe_to_events |
Subscribe event trigger to events. |
begin_unsubscribe_from_events |
Unsubscribe event trigger from events. |
create_or_update |
Creates or updates a trigger. |
delete |
Deletes a trigger. |
get |
Gets a trigger. |
get_event_subscription_status |
Get a trigger's event subscription status. |
list_by_factory |
Lists triggers. |
query_by_factory |
Query triggers. |
begin_start
Starts a trigger.
begin_start(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_stop
Stops a trigger.
begin_stop(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_subscribe_to_events
Subscribe event trigger to events.
begin_subscribe_to_events(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> LROPoller[TriggerSubscriptionOperationStatus]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_unsubscribe_from_events
Unsubscribe event trigger from events.
begin_unsubscribe_from_events(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> LROPoller[TriggerSubscriptionOperationStatus]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update
Creates or updates a trigger.
create_or_update(resource_group_name: str, factory_name: str, trigger_name: str, trigger: _models.TriggerResource, if_match: str | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.TriggerResource
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
trigger
Required
|
Trigger resource definition. Is either a TriggerResource type or a IO[bytes] type. Required. |
if_match
Required
|
ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. |
Returns
Type | Description |
---|---|
TriggerResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes a trigger.
delete(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a trigger.
get(resource_group_name: str, factory_name: str, trigger_name: str, if_none_match: str | None = None, **kwargs: Any) -> TriggerResource | None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
if_none_match
Required
|
ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. |
Returns
Type | Description |
---|---|
TriggerResource or None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_event_subscription_status
Get a trigger's event subscription status.
get_event_subscription_status(resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any) -> TriggerSubscriptionOperationStatus
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
trigger_name
Required
|
The trigger name. Required. |
Returns
Type | Description |
---|---|
TriggerSubscriptionOperationStatus or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_factory
Lists triggers.
list_by_factory(resource_group_name: str, factory_name: str, **kwargs: Any) -> Iterable[TriggerResource]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either TriggerResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
query_by_factory
Query triggers.
query_by_factory(resource_group_name: str, factory_name: str, filter_parameters: _models.TriggerFilterParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.TriggerQueryResponse
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
factory_name
Required
|
The factory name. Required. |
filter_parameters
Required
|
Parameters to filter the triggers. Is either a TriggerFilterParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
TriggerQueryResponse or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.datafactory.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\datafactory\\models\\__init__.py'>
Azure SDK for Python