PeeringServicesOperations Class
PeeringServicesOperations 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.objectPeeringServicesOperations
Constructor
PeeringServicesOperations(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 service or updates an existing peering with the specified name under the given subscription and resource group. |
| delete |
Deletes an existing peering service with the specified name under the given subscription and resource group. |
| get |
Gets an existing peering service with the specified name under the given subscription and resource group. |
| list_by_resource_group |
Lists all of the peering services 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 service with the specified name under the given subscription and resource group. |
create_or_update
Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
async create_or_update(resource_group_name: str, peering_service_name: str, peering_service: azure.mgmt.peering.models._models_py3.PeeringService, **kwargs) -> azure.mgmt.peering.models._models_py3.PeeringService
Parameters
- peering_service
- PeeringService
The properties needed to create or update a peering service.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PeeringService, or the result of cls(response)
Return type
Exceptions
delete
Deletes an existing peering service with the specified name under the given subscription and resource group.
async delete(resource_group_name: str, peering_service_name: str, **kwargs) -> 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 service with the specified name under the given subscription and resource group.
async get(resource_group_name: str, peering_service_name: str, **kwargs) -> azure.mgmt.peering.models._models_py3.PeeringService
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PeeringService, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all of the peering services under the given subscription and resource group.
list_by_resource_group(resource_group_name: str, **kwargs) -> AsyncIterable[azure.mgmt.peering.models._models_py3.PeeringServiceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either PeeringServiceListResult 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) -> AsyncIterable[azure.mgmt.peering.models._models_py3.PeeringServiceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either PeeringServiceListResult or the result of cls(response)
Return type
Exceptions
update
Updates tags for a peering service with the specified name under the given subscription and resource group.
async update(resource_group_name: str, peering_service_name: str, tags: azure.mgmt.peering.models._models_py3.ResourceTags, **kwargs) -> azure.mgmt.peering.models._models_py3.PeeringService
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PeeringService, 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