Compartilhar via


PublicIPPrefixesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:public_ip_prefixes> attribute.

Inheritance
builtins.object
PublicIPPrefixesOperations

Constructor

PublicIPPrefixesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a static or dynamic public IP prefix.

begin_delete

Deletes the specified public IP prefix.

get

Gets the specified public IP prefix in a specified resource group.

list

Gets all public IP prefixes in a resource group.

list_all

Gets all the public IP prefixes in a subscription.

update_tags

Updates public IP prefix tags.

begin_create_or_update

Creates or updates a static or dynamic public IP prefix.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

public_ip_prefix_name
Required
str

The name of the public IP prefix. Required.

parameters
Required

Parameters supplied to the create or update public IP prefix operation. Is either a PublicIPPrefix type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either PublicIPPrefix or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified public IP prefix.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

public_ip_prefix_name
Required
str

The name of the PublicIpPrefix. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets the specified public IP prefix in a specified resource group.

async get(resource_group_name: str, public_ip_prefix_name: str, *, expand: str | None = None, **kwargs: Any) -> PublicIPPrefix

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

public_ip_prefix_name
Required
str

The name of the public IP prefix. Required.

Keyword-Only Parameters

Name Description
expand
str

Expands referenced resources. Default value is None.

Returns

Type Description

PublicIPPrefix or the result of cls(response)

Exceptions

Type Description

list

Gets all public IP prefixes in a resource group.

list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[PublicIPPrefix]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

list_all

Gets all the public IP prefixes in a subscription.

list_all(**kwargs: Any) -> AsyncIterable[PublicIPPrefix]

Returns

Type Description

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

Exceptions

Type Description

update_tags

Updates public IP prefix tags.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

public_ip_prefix_name
Required
str

The name of the public IP prefix. Required.

parameters
Required

Parameters supplied to update public IP prefix tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

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