Compartilhar via


AccessReviewInstancesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AuthorizationManagementClient's

<xref:access_review_instances> attribute.

Inheritance
builtins.object
AccessReviewInstancesOperations

Constructor

AccessReviewInstancesOperations(*args, **kwargs)

Methods

create

Update access review instance.

get_by_id

Get access review instances.

list

Get access review instances.

create

Update access review instance.

create(schedule_definition_id: str, id: str, properties: _models.AccessReviewInstanceProperties, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AccessReviewInstance

Parameters

Name Description
schedule_definition_id
Required
str

The id of the access review schedule definition. Required.

id
Required
str

The id of the access review instance. Required.

properties
Required

Access review instance properties. Is either a AccessReviewInstanceProperties type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

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

Returns

Type Description

AccessReviewInstance or the result of cls(response)

Exceptions

Type Description

get_by_id

Get access review instances.

get_by_id(schedule_definition_id: str, id: str, **kwargs: Any) -> AccessReviewInstance

Parameters

Name Description
schedule_definition_id
Required
str

The id of the access review schedule definition. Required.

id
Required
str

The id of the access review instance. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

AccessReviewInstance or the result of cls(response)

Exceptions

Type Description

list

Get access review instances.

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

Parameters

Name Description
schedule_definition_id
Required
str

The id of the access review schedule definition. Required.

filter
Required
str

The filter to apply on the operation. Other than standard filters, one custom filter option is supported : 'assignedToMeToReview()'. When one specified $filter=assignedToMeToReview(), only items that are assigned to the calling user to review are returned. 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 AccessReviewInstance or the result of cls(response)

Exceptions

Type Description

Attributes

models

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