Sdílet prostřednictvím


ConfigurationPolicyGroupsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:configuration_policy_groups> attribute.

Inheritance
builtins.object
ConfigurationPolicyGroupsOperations

Constructor

ConfigurationPolicyGroupsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one.

begin_delete

Deletes a ConfigurationPolicyGroup.

get

Retrieves the details of a ConfigurationPolicyGroup.

list_by_vpn_server_configuration

Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration.

begin_create_or_update

Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one.

begin_create_or_update(resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, vpn_server_configuration_policy_group_parameters: _models.VpnServerConfigurationPolicyGroup, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VpnServerConfigurationPolicyGroup]

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the ConfigurationPolicyGroup. Required.

vpn_server_configuration_name
Required
str

The name of the VpnServerConfiguration. Required.

configuration_policy_group_name
Required
str

The name of the ConfigurationPolicyGroup. Required.

vpn_server_configuration_policy_group_parameters
Required

Parameters supplied to create or update a VpnServerConfiguration PolicyGroup. Is either a VpnServerConfigurationPolicyGroup type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a ConfigurationPolicyGroup.

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

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the ConfigurationPolicyGroup. Required.

vpn_server_configuration_name
Required
str

The name of the VpnServerConfiguration. Required.

configuration_policy_group_name
Required
str

The name of the ConfigurationPolicyGroup. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Retrieves the details of a ConfigurationPolicyGroup.

get(resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, **kwargs: Any) -> VpnServerConfigurationPolicyGroup

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VpnServerConfiguration. Required.

vpn_server_configuration_name
Required
str

The name of the VpnServerConfiguration. Required.

configuration_policy_group_name
Required
str

The name of the ConfigurationPolicyGroup being retrieved. Required.

Returns

Type Description

VpnServerConfigurationPolicyGroup or the result of cls(response)

Exceptions

Type Description

list_by_vpn_server_configuration

Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration.

list_by_vpn_server_configuration(resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any) -> Iterable[VpnServerConfigurationPolicyGroup]

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VpnServerConfiguration. Required.

vpn_server_configuration_name
Required
str

The name of the VpnServerConfiguration. Required.

Returns

Type Description

An iterator like instance of either VpnServerConfigurationPolicyGroup 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'>