Sdílet prostřednictvím


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.

Inheritance
builtins.object
ServiceEndpointPolicyDefinitionsOperations

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 the specified service endpoint policy definitions from service endpoint policy.

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. 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 service endpoint policy definition name. Required.

service_endpoint_policy_definitions
Required

Parameters supplied to the create or update service endpoint policy operation. Is either a ServiceEndpointPolicyDefinition type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either ServiceEndpointPolicyDefinition or the result of cls(response)

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. 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 service endpoint policy definition. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Get the specified service endpoint policy definitions from service endpoint policy.

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. Required.

service_endpoint_policy_name
Required
str

The name of the service endpoint policy name. Required.

service_endpoint_policy_definition_name
Required
str

The name of the service endpoint policy definition name. Required.

Returns

Type Description

ServiceEndpointPolicyDefinition or the result of cls(response)

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) -> Iterable[ServiceEndpointPolicyDefinition]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

service_endpoint_policy_name
Required
str

The name of the service endpoint policy name. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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