PeerAsnsOperations Class

PeerAsnsOperations 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
PeerAsnsOperations

Constructor

PeerAsnsOperations(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 a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

delete

Deletes an existing peer ASN with the specified name under the given subscription.

get

Gets the peer ASN with the specified name under the given subscription.

list_by_subscription

Lists all of the peer ASNs under the given subscription.

create_or_update

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

create_or_update(peer_asn_name: str, peer_asn: _models.PeerAsn, **kwargs: Any) -> _models.PeerAsn

Parameters

peer_asn_name
str
Required

The peer ASN name.

peer_asn
PeerAsn
Required

The peer ASN.

cls
callable

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

Returns

PeerAsn, or the result of cls(response)

Return type

Exceptions

delete

Deletes an existing peer ASN with the specified name under the given subscription.

delete(peer_asn_name: str, **kwargs: Any) -> None

Parameters

peer_asn_name
str
Required

The peer ASN 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 peer ASN with the specified name under the given subscription.

get(peer_asn_name: str, **kwargs: Any) -> _models.PeerAsn

Parameters

peer_asn_name
str
Required

The peer ASN name.

cls
callable

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

Returns

PeerAsn, or the result of cls(response)

Return type

Exceptions

list_by_subscription

Lists all of the peer ASNs under the given subscription.

list_by_subscription(**kwargs: Any) -> Iterable[_models.PeerAsnListResult]

Parameters

cls
callable

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

Returns

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