CapabilitiesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:capabilities> attribute.
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, resource: _models.Capability, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Capability
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
parent_provider_namespace
Required
|
The parent resource provider namespace. Required. |
parent_resource_type
Required
|
The parent resource type. Required. |
parent_resource_name
Required
|
The parent resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
capability_name
Required
|
String that represents a Capability resource name. Required. |
resource
Required
|
Capability resource to be created or updated. Is either a Capability type or a IO[bytes] type. Required. |
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
|
The name of the resource group. The name is case insensitive. Required. |
parent_provider_namespace
Required
|
The parent resource provider namespace. Required. |
parent_resource_type
Required
|
The parent resource type. Required. |
parent_resource_name
Required
|
The parent resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
capability_name
Required
|
String that represents a Capability resource name. Required. |
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
|
The name of the resource group. The name is case insensitive. Required. |
parent_provider_namespace
Required
|
The parent resource provider namespace. Required. |
parent_resource_type
Required
|
The parent resource type. Required. |
parent_resource_name
Required
|
The parent resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
capability_name
Required
|
String that represents a Capability resource name. Required. |
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) -> ItemPaged[Capability]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
parent_provider_namespace
Required
|
The parent resource provider namespace. Required. |
parent_resource_type
Required
|
The parent resource type. Required. |
parent_resource_name
Required
|
The parent resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
continuation_token_parameter
|
String that sets the continuation token. Default value is None. Default value: None
|
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:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv84\\Lib\\site-packages\\azure\\mgmt\\chaos\\models\\__init__.py'>