CloudServiceRolesOperations Class
CloudServiceRolesOperations 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.objectCloudServiceRolesOperations
Constructor
CloudServiceRolesOperations(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
| get |
Gets a role from a cloud service. |
| list |
Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles. |
get
Gets a role from a cloud service.
async get(role_name: str, resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.CloudServiceRole
Parameters
- resource_group_name
- str
- cloud_service_name
- str
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CloudServiceRole, or the result of cls(response)
Return type
Exceptions
list
Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.
list(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.CloudServiceRoleListResult]
Parameters
- resource_group_name
- str
- cloud_service_name
- str
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either CloudServiceRoleListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>
Feedback
Submit and view feedback for