AvailabilitySetsOperations Class
AvailabilitySetsOperations 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.objectAvailabilitySetsOperations
Constructor
AvailabilitySetsOperations(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 an availability set. |
| delete |
Delete an availability set. |
| get |
Retrieves information about an availability set. |
| list |
Lists all availability sets in a resource group. |
| list_available_sizes |
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. |
| list_by_subscription |
Lists all availability sets in a subscription. |
create_or_update
Create or update an availability set.
async create_or_update(resource_group_name: str, name: str, parameters: azure.mgmt.compute.v2016_04_30_preview.models._models_py3.AvailabilitySet, **kwargs: Any) -> azure.mgmt.compute.v2016_04_30_preview.models._models_py3.AvailabilitySet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AvailabilitySet, or the result of cls(response)
Return type
Exceptions
delete
Delete an availability set.
async delete(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
OperationStatusResponse, or the result of cls(response)
Return type
Exceptions
get
Retrieves information about an availability set.
async get(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> azure.mgmt.compute.v2016_04_30_preview.models._models_py3.AvailabilitySet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AvailabilitySet, or the result of cls(response)
Return type
Exceptions
list
Lists all availability sets in a resource group.
list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.AvailabilitySetListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AvailabilitySetListResult or the result of cls(response)
Return type
Exceptions
list_available_sizes
Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
list_available_sizes(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineSizeListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all availability sets in a subscription.
list_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.AvailabilitySetListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AvailabilitySetListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2016_04_30_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2016_04_30_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for