ProximityPlacementGroupsOperations Class
ProximityPlacementGroupsOperations 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.objectProximityPlacementGroupsOperations
Constructor
ProximityPlacementGroupsOperations(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 |
Create or update a proximity placement group. |
| delete |
Delete a proximity placement group. |
| get |
Retrieves information about a proximity placement group . |
| list_by_resource_group |
Lists all proximity placement groups in a resource group. |
| list_by_subscription |
Lists all proximity placement groups in a subscription. |
| update |
Update a proximity placement group. |
create_or_update
Create or update a proximity placement group.
async create_or_update(resource_group_name: str, proximity_placement_group_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroup, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroup
Parameters
- parameters
- ProximityPlacementGroup
Parameters supplied to the Create Proximity Placement Group operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProximityPlacementGroup, or the result of cls(response)
Return type
Exceptions
delete
Delete a proximity placement group.
async delete(resource_group_name: str, proximity_placement_group_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
Retrieves information about a proximity placement group .
async get(resource_group_name: str, proximity_placement_group_name: str, include_colocation_status: Optional[str] = None, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroup
Parameters
- include_colocation_status
- str
includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProximityPlacementGroup, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all proximity placement groups in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all proximity placement groups in a subscription.
list_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response)
Return type
Exceptions
update
Update a proximity placement group.
async update(resource_group_name: str, proximity_placement_group_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroupUpdate, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.ProximityPlacementGroup
Parameters
- parameters
- ProximityPlacementGroupUpdate
Parameters supplied to the Update Proximity Placement Group operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProximityPlacementGroup, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for