ServiceEndpointPoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:service_endpoint_policies> attribute.

Inheritance
builtins.object
ServiceEndpointPoliciesOperations

Constructor

ServiceEndpointPoliciesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a service Endpoint Policies.

begin_delete

Deletes the specified service endpoint policy.

get

Gets the specified service Endpoint Policies in a specified resource group.

list

Gets all the service endpoint policies in a subscription.

list_by_resource_group

Gets all service endpoint Policies in a resource group.

update_tags

Updates tags of a service endpoint policy.

begin_create_or_update

Creates or updates a service Endpoint Policies.

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

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.

parameters
Required

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

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified service endpoint policy.

begin_delete(resource_group_name: str, service_endpoint_policy_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.

Returns

Type Description

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

Exceptions

Type Description

get

Gets the specified service Endpoint Policies in a specified resource group.

get(resource_group_name: str, service_endpoint_policy_name: str, *, expand: str | None = None, **kwargs: Any) -> ServiceEndpointPolicy

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.

Keyword-Only Parameters

Name Description
expand
str

Expands referenced resources. Default value is None.

Returns

Type Description

ServiceEndpointPolicy or the result of cls(response)

Exceptions

Type Description

list

Gets all the service endpoint policies in a subscription.

list(**kwargs: Any) -> Iterable[ServiceEndpointPolicy]

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

Gets all service endpoint Policies in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[ServiceEndpointPolicy]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

update_tags

Updates tags of a service endpoint policy.

update_tags(resource_group_name: str, service_endpoint_policy_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ServiceEndpointPolicy

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.

parameters
Required

Parameters supplied to update service endpoint policy tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

ServiceEndpointPolicy 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'>