TasksOperations Class

TasksOperations 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
TasksOperations

Constructor

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

get_resource_group_level_task

Recommended tasks that will help improve the security of the subscription proactively.

get_subscription_level_task

Recommended tasks that will help improve the security of the subscription proactively.

list

Recommended tasks that will help improve the security of the subscription proactively.

list_by_home_region

Recommended tasks that will help improve the security of the subscription proactively.

list_by_resource_group

Recommended tasks that will help improve the security of the subscription proactively.

update_resource_group_level_task_state

Recommended tasks that will help improve the security of the subscription proactively.

update_subscription_level_task_state

Recommended tasks that will help improve the security of the subscription proactively.

get_resource_group_level_task

Recommended tasks that will help improve the security of the subscription proactively.

async get_resource_group_level_task(resource_group_name: str, task_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.SecurityTask

Parameters

resource_group_name
str
Required

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

task_name
str
Required

Name of the task object, will be a GUID.

cls
callable

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

Returns

SecurityTask, or the result of cls(response)

Return type

Exceptions

get_subscription_level_task

Recommended tasks that will help improve the security of the subscription proactively.

async get_subscription_level_task(task_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.SecurityTask

Parameters

task_name
str
Required

Name of the task object, will be a GUID.

cls
callable

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

Returns

SecurityTask, or the result of cls(response)

Return type

Exceptions

list

Recommended tasks that will help improve the security of the subscription proactively.

list(filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.SecurityTaskList]

Parameters

filter
str
default value: None

OData filter. Optional.

cls
callable

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

Returns

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

Return type

Exceptions

list_by_home_region

Recommended tasks that will help improve the security of the subscription proactively.

list_by_home_region(filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.SecurityTaskList]

Parameters

filter
str
default value: None

OData filter. Optional.

cls
callable

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

Returns

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

Return type

Exceptions

list_by_resource_group

Recommended tasks that will help improve the security of the subscription proactively.

list_by_resource_group(resource_group_name: str, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.SecurityTaskList]

Parameters

resource_group_name
str
Required

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

filter
str
default value: None

OData filter. Optional.

cls
callable

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

Returns

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

Return type

Exceptions

update_resource_group_level_task_state

Recommended tasks that will help improve the security of the subscription proactively.

async update_resource_group_level_task_state(resource_group_name: str, task_name: str, task_update_action_type: Union[str, azure.mgmt.security.models._security_center_enums.Enum15], **kwargs) -> None

Parameters

resource_group_name
str
Required

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

task_name
str
Required

Name of the task object, will be a GUID.

task_update_action_type
str or Enum15
Required

Type of the action to do on the task.

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

update_subscription_level_task_state

Recommended tasks that will help improve the security of the subscription proactively.

async update_subscription_level_task_state(task_name: str, task_update_action_type: Union[str, azure.mgmt.security.models._security_center_enums.Enum15], **kwargs) -> None

Parameters

task_name
str
Required

Name of the task object, will be a GUID.

task_update_action_type
str or Enum15
Required

Type of the action to do on the task.

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

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'>