TriggersOperations Class

TriggersOperations operations.

Inheritance
builtins.object
TriggersOperations

Constructor

TriggersOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

api_version

The API version. Constant value: "2019-03-01".

Methods

create_or_update

Creates or updates a trigger.

delete

Deletes the trigger on the gateway device.

get

Get a specific trigger by name.

list_by_data_box_edge_device

Lists all the triggers configured in the device.

create_or_update

Creates or updates a trigger.

create_or_update(device_name, name, trigger, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config)

Parameters

device_name
str
Required

Creates or updates a trigger

name
str
Required

The trigger name.

trigger
Trigger
Required

The trigger.

resource_group_name
str
Required

The resource group name.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

The poller return type is ClientRawResponse, the direct response alongside the deserialized response

polling
default value: True

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns Trigger or ClientRawResponse if raw==True

Return type

Exceptions

delete

Deletes the trigger on the gateway device.

delete(device_name, name, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config)

Parameters

device_name
str
Required

The device name.

name
str
Required

The trigger name.

resource_group_name
str
Required

The resource group name.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

The poller return type is ClientRawResponse, the direct response alongside the deserialized response

polling
default value: True

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns None or ClientRawResponse if raw==True

Return type

Exceptions

get

Get a specific trigger by name.

get(device_name, name, resource_group_name, custom_headers=None, raw=False, **operation_config)

Parameters

device_name
str
Required

The device name.

name
str
Required

The trigger name.

resource_group_name
str
Required

The resource group name.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

Trigger or ClientRawResponse if raw=true

Return type

Exceptions

list_by_data_box_edge_device

Lists all the triggers configured in the device.

list_by_data_box_edge_device(device_name, resource_group_name, expand=None, custom_headers=None, raw=False, **operation_config)

Parameters

device_name
str
Required

The device name.

resource_group_name
str
Required

The resource group name.

expand
str
default value: None

Specify $filter='CustomContextTag eq ' to filter on custom context tag property

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of Trigger

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.edgegateway.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\edgegateway\\models\\__init__.py'>