TargetsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ChaosManagementClient's

<xref:targets> attribute.

Inheritance
builtins.object
TargetsOperations

Constructor

TargetsOperations(*args, **kwargs)

Methods

create_or_update

Create or update a Target resource that extends a tracked regional resource.

delete

Delete a Target resource that extends a tracked regional resource.

get

Get a Target resource that extends a tracked regional resource.

list

Get a list of Target resources that extend a tracked regional resource.

create_or_update

Create or update a Target resource that extends a tracked regional resource.

create_or_update(resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, target_name: str, target: azure.mgmt.chaos.models._models_py3.Target, **kwargs: Any) -> azure.mgmt.chaos.models._models_py3.Target

Parameters

resource_group_name
str
Required

String that represents an Azure resource group.

parent_provider_namespace
str
Required

String that represents a resource provider namespace.

parent_resource_type
str
Required

String that represents a resource type.

parent_resource_name
str
Required

String that represents a resource name.

target_name
str
Required

String that represents a Target resource name.

target
Target
Required

Target resource to be created or updated.

cls
callable

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

Returns

Target, or the result of cls(response)

Return type

Exceptions

delete

Delete a Target resource that extends a tracked regional resource.

delete(resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, target_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

String that represents an Azure resource group.

parent_provider_namespace
str
Required

String that represents a resource provider namespace.

parent_resource_type
str
Required

String that represents a resource type.

parent_resource_name
str
Required

String that represents a resource name.

target_name
str
Required

String that represents a Target resource 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

Get a Target resource that extends a tracked regional resource.

get(resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, target_name: str, **kwargs: Any) -> azure.mgmt.chaos.models._models_py3.Target

Parameters

resource_group_name
str
Required

String that represents an Azure resource group.

parent_provider_namespace
str
Required

String that represents a resource provider namespace.

parent_resource_type
str
Required

String that represents a resource type.

parent_resource_name
str
Required

String that represents a resource name.

target_name
str
Required

String that represents a Target resource name.

cls
callable

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

Returns

Target, or the result of cls(response)

Return type

Exceptions

list

Get a list of Target resources that extend a tracked regional resource.

list(resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, continuation_token_parameter: Optional[str] = None, **kwargs: Any) -> Iterable[azure.mgmt.chaos.models._models_py3.TargetListResult]

Parameters

resource_group_name
str
Required

String that represents an Azure resource group.

parent_provider_namespace
str
Required

String that represents a resource provider namespace.

parent_resource_type
str
Required

String that represents a resource type.

parent_resource_name
str
Required

String that represents a resource name.

continuation_token_parameter
str
Required

String that sets the continuation token. Default value is None.

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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