AutomationsOperations Class

AutomationsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
AutomationsOperations

Constructor

AutomationsOperations(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

models

Alias to model classes used in this operation group.

Methods

create_or_update

Creates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated.

delete

Deletes a security automation.

get

Retrieves information about the model of a security automation.

list

Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

list_by_resource_group

Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group.

validate

Validates the security automation model before create or update. Any validation errors are returned to the client.

create_or_update

Creates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated.

async create_or_update(resource_group_name: str, automation_name: str, automation: azure.mgmt.security.models._models_py3.Automation, **kwargs) -> azure.mgmt.security.models._models_py3.Automation

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

automation_name
str
Required

The security automation name.

automation
Automation
Required

The security automation resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

Automation, or the result of cls(response)

Return type

Exceptions

delete

Deletes a security automation.

async delete(resource_group_name: str, automation_name: str, **kwargs) -> None

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

automation_name
str
Required

The security automation name.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Retrieves information about the model of a security automation.

async get(resource_group_name: str, automation_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.Automation

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

automation_name
str
Required

The security automation name.

cls
callable

A custom type or function that will be passed the direct response

Returns

Automation, or the result of cls(response)

Return type

Exceptions

list

Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

list(**kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.AutomationList]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AutomationList or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group.

list_by_resource_group(resource_group_name: str, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.AutomationList]

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AutomationList or the result of cls(response)

Return type

Exceptions

validate

Validates the security automation model before create or update. Any validation errors are returned to the client.

async validate(resource_group_name: str, automation_name: str, automation: azure.mgmt.security.models._models_py3.Automation, **kwargs) -> azure.mgmt.security.models._models_py3.AutomationValidationStatus

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

automation_name
str
Required

The security automation name.

automation
Automation
Required

The security automation resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

AutomationValidationStatus, or the result of cls(response)

Return type

Exceptions

Attributes

models

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