PeeringServicePrefixesOperations Class

PeeringServicePrefixesOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
PeeringServicePrefixesOperations

Constructor

PeeringServicePrefixesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Creates or updates the peering prefix.

delete

removes the peering prefix.

get

Gets the peering service prefix.

create_or_update

Creates or updates the peering prefix.

async create_or_update(resource_group_name: str, peering_service_name: str, prefix_name: str, peering_service_prefix: azure.mgmt.peering.models._models_py3.PeeringServicePrefix, **kwargs) -> azure.mgmt.peering.models._models_py3.PeeringServicePrefix

Parameters

resource_group_name
str
Required

The resource group name.

peering_service_name
str
Required

The peering service name.

prefix_name
str
Required

The prefix name.

peering_service_prefix
PeeringServicePrefix
Required

The IP prefix for an peering.

cls
callable

A custom type or function that will be passed the direct response

Returns

PeeringServicePrefix, or the result of cls(response)

Return type

Exceptions

delete

removes the peering prefix.

async delete(resource_group_name: str, peering_service_name: str, prefix_name: str, **kwargs) -> None

Parameters

resource_group_name
str
Required

The resource group name.

peering_service_name
str
Required

The peering service name.

prefix_name
str
Required

The prefix name.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets the peering service prefix.

async get(resource_group_name: str, peering_service_name: str, prefix_name: str, **kwargs) -> azure.mgmt.peering.models._models_py3.PeeringServicePrefix

Parameters

resource_group_name
str
Required

The resource group name.

peering_service_name
str
Required

The peering service name.

prefix_name
str
Required

The prefix name.

cls
callable

A custom type or function that will be passed the direct response

Returns

PeeringServicePrefix, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.peering.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\peering\\models\\__init__.py'>