Partilhar via


StaticCidrsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:static_cidrs> attribute.

Inheritance
builtins.object
StaticCidrsOperations

Constructor

StaticCidrsOperations(*args, **kwargs)

Methods

begin_delete

Delete the Static CIDR resource.

Delete the Static CIDR resource.

create

Creates/Updates the Static CIDR resource.

Creates/Updates the Static CIDR resource.

get

Gets the specific Static CIDR resource.

Gets the specific Static CIDR resource.

list

Gets list of Static CIDR resources at Network Manager level.

Gets list of Static CIDR resources at Network Manager level.

begin_delete

Delete the Static CIDR resource.

Delete the Static CIDR resource.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_manager_name
Required
str

The name of the network manager. Required.

pool_name
Required
str

Pool resource name. Required.

static_cidr_name
Required
str

StaticCidr resource name to delete. Required.

Returns

Type Description

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

Exceptions

Type Description

create

Creates/Updates the Static CIDR resource.

Creates/Updates the Static CIDR resource.

create(resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, body: _models.StaticCidr | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.StaticCidr

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_manager_name
Required
str

The name of the network manager. Required.

pool_name
Required
str

IP Address Manager Pool resource name. Required.

static_cidr_name
Required
str

Static Cidr allocation name. Required.

body
Required

StaticCidr resource object to create/update. Is either a StaticCidr type or a IO[bytes] type. Default value is None.

Returns

Type Description

StaticCidr or the result of cls(response)

Exceptions

Type Description

get

Gets the specific Static CIDR resource.

Gets the specific Static CIDR resource.

get(resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any) -> StaticCidr

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_manager_name
Required
str

The name of the network manager. Required.

pool_name
Required
str

Pool resource name. Required.

static_cidr_name
Required
str

StaticCidr resource name to retrieve. Required.

Returns

Type Description

StaticCidr or the result of cls(response)

Exceptions

Type Description

list

Gets list of Static CIDR resources at Network Manager level.

Gets list of Static CIDR resources at Network Manager level.

list(resource_group_name: str, network_manager_name: str, pool_name: str, *, skip_token: str | None = None, skip: int = 0, top: int = 50, sort_key: str | None = None, sort_value: str | None = None, **kwargs: Any) -> Iterable[StaticCidr]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_manager_name
Required
str

The name of the network manager. Required.

pool_name
Required
str

Pool resource name. Required.

Keyword-Only Parameters

Name Description
skip_token
str

Optional skip token. Default value is None.

skip
int

Optional num entries to skip. Default value is 0.

top
int

Optional num entries to show. Default value is 50.

sort_key
str

Optional key by which to sort. Default value is None.

sort_value
str

Optional sort value for pagination. Default value is None.

Returns

Type Description

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