Compartilhar via


ScopeRoleAssignmentApprovalOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AuthorizationManagementClient's

<xref:scope_role_assignment_approval> attribute.

Inheritance
builtins.object
ScopeRoleAssignmentApprovalOperations

Constructor

ScopeRoleAssignmentApprovalOperations(*args, **kwargs)

Methods

get_by_id

Get role assignment approval.

list

Get role assignment approvals.

get_by_id

Get role assignment approval.

get_by_id(approval_id: str, scope: str, **kwargs: Any) -> RoleAssignmentApproval

Parameters

Name Description
approval_id
Required
str

The id of the role assignment approval. Required.

scope
Required
str

The scope of the resource. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

RoleAssignmentApproval or the result of cls(response)

Exceptions

Type Description

list

Get role assignment approvals.

list(scope: str, filter: str | None = None, **kwargs: Any) -> Iterable[RoleAssignmentApproval]

Parameters

Name Description
scope
Required
str

The scope of the resource. Required.

filter
Required
str

The filter to apply on the operation. Valid values for $filter are: 'asApprover()', 'asCreatedBy()' and 'asTarget()'. If $filter is not provided, no filtering is performed. If $filter=asApprover() is provided, the returned list only includes all role assignment approvals that the calling user is assigned as an approver for. If $filter=asCreatedBy() is provided, the returned list only includes all role assignment approvals that the calling user created requests for. If $filter=asTarget() is provided, the returned list only includes all role assignment approvals that the calling user has requests targeted for. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either RoleAssignmentApproval or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2021_01_01_preview\\models\\__init__.py'>