CloudServiceRolesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:cloud_service_roles> attribute.
- Inheritance
-
builtins.objectCloudServiceRolesOperations
Constructor
CloudServiceRolesOperations(*args, **kwargs)
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) -> CloudServiceRole
Parameters
Name | Description |
---|---|
role_name
Required
|
Name of the role. Required. |
resource_group_name
Required
|
Required. |
cloud_service_name
Required
|
Required. |
Returns
Type | Description |
---|---|
CloudServiceRole or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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[CloudServiceRole]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Required. |
cloud_service_name
Required
|
Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either CloudServiceRole or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>
Azure SDK for Python