Compartilhar via


RoleAssignmentApprovalOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AuthorizationManagementClient's

<xref:role_assignment_approval> attribute.

Inheritance
builtins.object
RoleAssignmentApprovalOperations

Constructor

RoleAssignmentApprovalOperations(*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, **kwargs: Any) -> RoleAssignmentApproval

Parameters

Name Description
approval_id
Required
str

The id of the role assignment approval. 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(filter: str | None = None, **kwargs: Any) -> Iterable[RoleAssignmentApproval]

Parameters

Name Description
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'>