ServiceEndpointPolicyDefinitionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:service_endpoint_policy_definitions> attribute.

Constructor

ServiceEndpointPolicyDefinitionsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a service endpoint policy definition in the specified service endpoint policy.

begin_delete

Deletes the specified ServiceEndpoint policy definitions.

get

Get a ServiceEndpointPolicyDefinition.

list_by_resource_group

Gets all service endpoint policy definitions in a service end point policy.

begin_create_or_update

Creates or updates a service endpoint policy definition in the specified service endpoint policy.

begin_create_or_update(resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, service_endpoint_policy_definitions: _models.ServiceEndpointPolicyDefinition, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ServiceEndpointPolicyDefinition]

Parameters

Name Description
resource_group_name
Required
str

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

service_endpoint_policy_name
Required
str

The name of the service endpoint policy. Required.

service_endpoint_policy_definition_name
Required
str

The name of the resource that is unique within a resource group. This name can be used to access the resource. Required.

service_endpoint_policy_definitions
Required

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

Returns

Type Description

An instance of LROPoller that returns ServiceEndpointPolicyDefinition. The ServiceEndpointPolicyDefinition is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Deletes the specified ServiceEndpoint policy definitions.

begin_delete(resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

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

service_endpoint_policy_name
Required
str

The name of the service endpoint policy. Required.

service_endpoint_policy_definition_name
Required
str

The name of the resource that is unique within a resource group. This name can be used to access the resource. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

Get a ServiceEndpointPolicyDefinition.

get(resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, **kwargs: Any) -> ServiceEndpointPolicyDefinition

Parameters

Name Description
resource_group_name
Required
str

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

service_endpoint_policy_name
Required
str

The name of the service endpoint policy. Required.

service_endpoint_policy_definition_name
Required
str

The name of the resource that is unique within a resource group. This name can be used to access the resource. Required.

Returns

Type Description

ServiceEndpointPolicyDefinition. The ServiceEndpointPolicyDefinition is compatible with MutableMapping

Exceptions

Type Description

list_by_resource_group

Gets all service endpoint policy definitions in a service end point policy.

list_by_resource_group(resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any) -> ItemPaged[ServiceEndpointPolicyDefinition]

Parameters

Name Description
resource_group_name
Required
str

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

service_endpoint_policy_name
Required
str

The name of the service endpoint policy. Required.

Returns

Type Description

An iterator like instance of ServiceEndpointPolicyDefinition

Exceptions

Type Description