CloudServiceRolesOperations Class

CloudServiceRolesOperations 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.object
CloudServiceRolesOperations

Constructor

CloudServiceRolesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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.

get(role_name: str, resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> _models.CloudServiceRole

Parameters

role_name
str
Required

Name of the role.

resource_group_name
str
Required
cloud_service_name
str
Required
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) -> Iterable[_models.CloudServiceRoleListResult]

Parameters

resource_group_name
str
Required
cloud_service_name
str
Required
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'>