PeeringsOperations Class
PeeringsOperations 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.objectPeeringsOperations
Constructor
PeeringsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group. |
| delete |
Deletes an existing peering with the specified name under the given subscription and resource group. |
| get |
Gets an existing peering with the specified name under the given subscription and resource group. |
| list_by_resource_group |
Lists all of the peerings under the given subscription and resource group. |
| list_by_subscription |
Lists all of the peerings under the given subscription. |
| update |
Updates tags for a peering with the specified name under the given subscription and resource group. |
create_or_update
Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
create_or_update(resource_group_name: str, peering_name: str, peering: _models.Peering, **kwargs: Any) -> _models.Peering
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Peering, or the result of cls(response)
Return type
Exceptions
delete
Deletes an existing peering with the specified name under the given subscription and resource group.
delete(resource_group_name: str, peering_name: str, **kwargs: Any) -> None
Parameters
- 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 an existing peering with the specified name under the given subscription and resource group.
get(resource_group_name: str, peering_name: str, **kwargs: Any) -> _models.Peering
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Peering, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all of the peerings under the given subscription and resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[_models.PeeringListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either PeeringListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all of the peerings under the given subscription.
list_by_subscription(**kwargs: Any) -> Iterable[_models.PeeringListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either PeeringListResult or the result of cls(response)
Return type
Exceptions
update
Updates tags for a peering with the specified name under the given subscription and resource group.
update(resource_group_name: str, peering_name: str, tags: _models.ResourceTags, **kwargs: Any) -> _models.Peering
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Peering, 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'>
Feedback
Submit and view feedback for