DedicatedHostGroupsOperations Class
DedicatedHostGroupsOperations 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.objectDedicatedHostGroupsOperations
Constructor
DedicatedHostGroupsOperations(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 dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596). |
| delete |
Delete a dedicated host group. |
| get |
Retrieves information about a dedicated host group. |
| list_by_resource_group |
Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. |
| list_by_subscription |
Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. |
| update |
Update an dedicated host group. |
create_or_update
Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596).
async create_or_update(resource_group_name: str, host_group_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroup, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroup
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DedicatedHostGroup, or the result of cls(response)
Return type
Exceptions
delete
Delete a dedicated host group.
async delete(resource_group_name: str, host_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 dedicated host group.
async get(resource_group_name: str, host_group_name: str, expand: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.InstanceViewTypes]] = None, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroup
Parameters
- expand
- str or InstanceViewTypes
The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host group.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DedicatedHostGroup, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
list_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroupListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response)
Return type
Exceptions
update
Update an dedicated host group.
async update(resource_group_name: str, host_group_name: str, parameters: azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroupUpdate, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.DedicatedHostGroup
Parameters
- parameters
- DedicatedHostGroupUpdate
Parameters supplied to the Update Dedicated Host Group operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DedicatedHostGroup, 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