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: _models.Capability, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Capability

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

parent_provider_namespace
Required
str

String that represents a resource provider namespace. Required.

parent_resource_type
Required
str

String that represents a resource type. Required.

parent_resource_name
Required
str

String that represents a resource name. Required.

target_name
Required
str

String that represents a Target resource name. Required.

capability_name
Required
str

String that represents a Capability resource name. Required.

capability
Required

Capability resource to be created or updated. Is either a Capability type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

Returns

Type Description

Capability or the result of cls(response)

Exceptions

Type Description

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

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

parent_provider_namespace
Required
str

String that represents a resource provider namespace. Required.

parent_resource_type
Required
str

String that represents a resource type. Required.

parent_resource_name
Required
str

String that represents a resource name. Required.

target_name
Required
str

String that represents a Target resource name. Required.

capability_name
Required
str

String that represents a Capability resource name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

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) -> Capability

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

parent_provider_namespace
Required
str

String that represents a resource provider namespace. Required.

parent_resource_type
Required
str

String that represents a resource type. Required.

parent_resource_name
Required
str

String that represents a resource name. Required.

target_name
Required
str

String that represents a Target resource name. Required.

capability_name
Required
str

String that represents a Capability resource name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

Capability or the result of cls(response)

Exceptions

Type Description

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: str | None = None, **kwargs: Any) -> Iterable[Capability]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

parent_provider_namespace
Required
str

String that represents a resource provider namespace. Required.

parent_resource_type
Required
str

String that represents a resource type. Required.

parent_resource_name
Required
str

String that represents a resource name. Required.

target_name
Required
str

String that represents a Target resource name. Required.

continuation_token_parameter
Required
str

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

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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