AvailabilitySetsOperations Class
AvailabilitySetsOperations 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. |
| update |
Update an availability set. |
create_or_update
Create or update an availability set.
create_or_update(resource_group_name: str, availability_set_name: str, parameters: _models.AvailabilitySet, **kwargs: Any) -> _models.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.
delete(resource_group_name: str, availability_set_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 an availability set.
get(resource_group_name: str, availability_set_name: str, **kwargs: Any) -> _models.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) -> Iterable[_models.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) -> Iterable[_models.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(expand: Optional[str] = None, **kwargs: Any) -> Iterable[_models.AvailabilitySetListResult]
Parameters
- expand
- str
The expand expression to apply to the operation. Allowed values are 'instanceView'.
- 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
update
Update an availability set.
update(resource_group_name: str, availability_set_name: str, parameters: _models.AvailabilitySetUpdate, **kwargs: Any) -> _models.AvailabilitySet
Parameters
- parameters
- AvailabilitySetUpdate
Parameters supplied to the Update Availability Set operation.
- 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
Attributes
models
models = <module 'azure.mgmt.compute.v2019_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2019_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for