ProximityPlacementGroupsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:proximity_placement_groups> attribute.
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.
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. The name is case insensitive. 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 one of the following types: ProximityPlacementGroup, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
ProximityPlacementGroup. The ProximityPlacementGroup is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
Delete a proximity placement group.
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. The name is case insensitive. Required. |
|
proximity_placement_group_name
Required
|
The name of the proximity placement group. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get
Retrieves information about a proximity placement group .
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. The name is case insensitive. 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. Default value: None
|
Returns
| Type | Description |
|---|---|
|
ProximityPlacementGroup. The ProximityPlacementGroup is compatible with MutableMapping |
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) -> ItemPaged[ProximityPlacementGroup]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of ProximityPlacementGroup |
Exceptions
| Type | Description |
|---|---|
list_by_subscription
Lists all proximity placement groups in a subscription.
list_by_subscription(**kwargs: Any) -> ItemPaged[ProximityPlacementGroup]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of ProximityPlacementGroup |
Exceptions
| Type | Description |
|---|---|
update
Update a proximity placement group.
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. The name is case insensitive. 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 one of the following types: ProximityPlacementGroupUpdate, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
ProximityPlacementGroup. The ProximityPlacementGroup is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|