ProximityPlacementGroupsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:proximity_placement_groups> attribute.
- Inheritance
-
builtins.objectProximityPlacementGroupsOperations
Constructor
ProximityPlacementGroupsOperations(*args, **kwargs)
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: _models.ProximityPlacementGroup, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ProximityPlacementGroup
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
proximity_placement_group_name
Required
|
The name of the proximity placement group. Required. |
parameters
Required
|
Parameters supplied to the Create Proximity Placement Group operation. Is either a ProximityPlacementGroup type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
ProximityPlacementGroup or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Delete a proximity placement group.
async delete(resource_group_name: str, proximity_placement_group_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
proximity_placement_group_name
Required
|
The name of the proximity placement group. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Retrieves information about a proximity placement group .
async get(resource_group_name: str, proximity_placement_group_name: str, *, include_colocation_status: str | None = None, **kwargs: Any) -> ProximityPlacementGroup
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
proximity_placement_group_name
Required
|
The name of the proximity placement group. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
include_colocation_status
|
includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group. Default value is None. |
Returns
Type | Description |
---|---|
ProximityPlacementGroup or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_resource_group
Lists all proximity placement groups in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[ProximityPlacementGroup]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either ProximityPlacementGroup or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_subscription
Lists all proximity placement groups in a subscription.
list_by_subscription(**kwargs: Any) -> AsyncIterable[ProximityPlacementGroup]
Returns
Type | Description |
---|---|
An iterator like instance of either ProximityPlacementGroup or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Update a proximity placement group.
async update(resource_group_name: str, proximity_placement_group_name: str, parameters: _models.ProximityPlacementGroupUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ProximityPlacementGroup
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
proximity_placement_group_name
Required
|
The name of the proximity placement group. Required. |
parameters
Required
|
Parameters supplied to the Update Proximity Placement Group operation. Is either a ProximityPlacementGroupUpdate type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
ProximityPlacementGroup or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2023_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2023_07_01\\models\\__init__.py'>
Azure SDK for Python