CapabilitiesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ChaosManagementClient's

<xref:capabilities> attribute.

Inheritance
builtins.object
CapabilitiesOperations

Constructor

CapabilitiesOperations(*args, **kwargs)

Methods

create_or_update

Create or update a Capability resource that extends a Target resource.

delete

Delete a Capability that extends a Target resource.

get

Get a Capability resource that extends a Target resource.

list

Get a list of Capability resources that extend a Target resource..

create_or_update

Create or update a Capability resource that extends a Target resource.

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

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.

capability_name
str
Required

String that represents a Capability resource name.

capability
Capability
Required

Capability resource to be created or updated.

cls
callable

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

Returns

Capability, or the result of cls(response)

Return type

Exceptions

delete

Delete a Capability that extends a Target resource.

delete(resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, target_name: str, capability_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.

capability_name
str
Required

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

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

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.

capability_name
str
Required

String that represents a Capability resource name.

cls
callable

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

Returns

Capability, or the result of cls(response)

Return type

Exceptions

list

Get a list of Capability resources that extend a Target resource..

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

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.

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