Sdílet prostřednictvím


IpAllocationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:ip_allocations> attribute.

Inheritance
builtins.object
IpAllocationsOperations

Constructor

IpAllocationsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates an IpAllocation in the specified resource group.

begin_delete

Deletes the specified IpAllocation.

get

Gets the specified IpAllocation by resource group.

list

Gets all IpAllocations in a subscription.

list_by_resource_group

Gets all IpAllocations in a resource group.

update_tags

Updates a IpAllocation tags.

begin_create_or_update

Creates or updates an IpAllocation in the specified resource group.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ip_allocation_name
Required
str

The name of the IpAllocation. Required.

parameters
Required

Parameters supplied to the create or update virtual network operation. Is either a IpAllocation type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified IpAllocation.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ip_allocation_name
Required
str

The name of the IpAllocation. 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 IpAllocation by resource group.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ip_allocation_name
Required
str

The name of the IpAllocation. Required.

Keyword-Only Parameters

Name Description
expand
str

Expands referenced resources. Default value is None.

Returns

Type Description

IpAllocation or the result of cls(response)

Exceptions

Type Description

list

Gets all IpAllocations in a subscription.

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

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

Gets all IpAllocations in a resource group.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

update_tags

Updates a IpAllocation tags.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

ip_allocation_name
Required
str

The name of the IpAllocation. Required.

parameters
Required

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

Returns

Type Description

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