CloudServiceRolesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:cloud_service_roles> attribute.

Inheritance
builtins.object
CloudServiceRolesOperations

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.

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

Parameters

Name Description
role_name
Required
str

Name of the role. Required.

resource_group_name
Required
str

Name of the resource group. Required.

cloud_service_name
Required
str

Name of the cloud service. 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) -> Iterable[CloudServiceRole]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group. Required.

cloud_service_name
Required
str

Name of the cloud service. 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.v2022_04_04.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2022_04_04\\models\\__init__.py'>