DscpConfigurationOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:dscp_configuration> attribute.

Constructor

DscpConfigurationOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a DSCP Configuration.

begin_delete

Deletes a DSCP Configuration.

get

Gets a DSCP Configuration.

list

Gets a DSCP Configuration.

list_all

Gets all dscp configurations in a subscription.

begin_create_or_update

Creates or updates a DSCP Configuration.

async begin_create_or_update(resource_group_name: str, dscp_configuration_name: str, parameters: _models.DscpConfiguration, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DscpConfiguration]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

dscp_configuration_name
Required
str

The name of the resource. Required.

parameters
Required
DscpConfiguration or <xref:JSON> or IO[bytes]

Parameters supplied to the create or update DscpConfiguration operation. Is one of the following types: DscpConfiguration, JSON, IO[bytes] Required.

Returns

Type Description

An instance of AsyncLROPoller that returns DscpConfiguration. The DscpConfiguration is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Deletes a DSCP Configuration.

async begin_delete(resource_group_name: str, dscp_configuration_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

dscp_configuration_name
Required
str

The name of the resource. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns None

Exceptions

Type Description

get

Gets a DSCP Configuration.

async get(resource_group_name: str, dscp_configuration_name: str, **kwargs: Any) -> DscpConfiguration

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

dscp_configuration_name
Required
str

The name of the resource. Required.

Returns

Type Description

DscpConfiguration. The DscpConfiguration is compatible with MutableMapping

Exceptions

Type Description

list

Gets a DSCP Configuration.

list(resource_group_name: str, **kwargs: Any) -> AsyncItemPaged[DscpConfiguration]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of DscpConfiguration

Exceptions

Type Description

list_all

Gets all dscp configurations in a subscription.

list_all(**kwargs: Any) -> AsyncItemPaged[DscpConfiguration]

Returns

Type Description

An iterator like instance of DscpConfiguration

Exceptions

Type Description