TargetsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:targets> attribute.
- Inheritance
-
builtins.objectTargetsOperations
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: _models.Target, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Target
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
String that represents an Azure resource group. Required. |
parent_provider_namespace
Required
|
String that represents a resource provider namespace. Required. |
parent_resource_type
Required
|
String that represents a resource type. Required. |
parent_resource_name
Required
|
String that represents a resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
target
Required
|
Target resource to be created or updated. Is either a Target type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
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 |
---|---|
Target or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
resource_group_name
Required
|
String that represents an Azure resource group. Required. |
parent_provider_namespace
Required
|
String that represents a resource provider namespace. Required. |
parent_resource_type
Required
|
String that represents a resource type. Required. |
parent_resource_name
Required
|
String that represents a resource name. Required. |
target_name
Required
|
String that represents a Target 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 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) -> Target
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
String that represents an Azure resource group. Required. |
parent_provider_namespace
Required
|
String that represents a resource provider namespace. Required. |
parent_resource_type
Required
|
String that represents a resource type. Required. |
parent_resource_name
Required
|
String that represents a resource name. Required. |
target_name
Required
|
String that represents a Target resource name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Target or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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: str | None = None, **kwargs: Any) -> Iterable[Target]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
String that represents an Azure resource group. Required. |
parent_provider_namespace
Required
|
String that represents a resource provider namespace. Required. |
parent_resource_type
Required
|
String that represents a resource type. Required. |
parent_resource_name
Required
|
String that represents a resource name. Required. |
continuation_token_parameter
Required
|
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 Target 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'>