azure.mgmt.authorization.v2021_01_01_preview.models module

class azure.mgmt.authorization.v2021_01_01_preview.models.ErrorDefinition(*, error: Optional[_models.ErrorDefinitionProperties] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Error description and code explaining why an operation failed.

Variables

error (ErrorDefinitionProperties) – Error of the list gateway status.

Keyword Arguments

error (ErrorDefinitionProperties) – Error of the list gateway status.

class azure.mgmt.authorization.v2021_01_01_preview.models.ErrorDefinitionProperties(*, code: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Error description and code explaining why an operation failed.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • message (str) – Description of the error.

  • code (str) – Error code of list gateway.

Keyword Arguments

code (str) – Error code of list gateway.

class azure.mgmt.authorization.v2021_01_01_preview.models.Operation(*, name: Optional[str] = None, is_data_action: Optional[bool] = None, display: Optional[_models.OperationDisplay] = None, origin: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The definition of a Microsoft.Authorization operation.

Variables
  • name (str) – Name of the operation.

  • is_data_action (bool) – Indicates whether the operation is a data action.

  • display (OperationDisplay) – Display of the operation.

  • origin (str) – Origin of the operation. Values include user|system|user,system.

Keyword Arguments
  • name (str) – Name of the operation.

  • is_data_action (bool) – Indicates whether the operation is a data action.

  • display (OperationDisplay) – Display of the operation.

  • origin (str) – Origin of the operation. Values include user|system|user,system.

class azure.mgmt.authorization.v2021_01_01_preview.models.OperationDisplay(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The display information for a Microsoft.Authorization operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • provider (str) – The resource provider name: Microsoft.Authorization.

  • resource (str) – The resource on which the operation is performed.

  • operation (str) – The operation that users can perform.

  • description (str) – The description for the operation.

class azure.mgmt.authorization.v2021_01_01_preview.models.OperationListResult(*, value: Optional[List[_models.Operation]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The result of a request to list Microsoft.Authorization operations.

Variables
  • value (list[Operation]) – The collection value.

  • next_link (str) – The URI that can be used to request the next set of paged results.

Keyword Arguments
  • value (list[Operation]) – The collection value.

  • next_link (str) – The URI that can be used to request the next set of paged results.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApproval(*, stages: Optional[List[_models.RoleAssignmentApprovalStep]] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Role Assignment Approval.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The role assignment approval id.

  • name (str) – The role assignment approval unique id.

  • type (str) – The resource type.

  • stages (list[RoleAssignmentApprovalStep]) – This is the collection of stages returned when one does an expand on it.

Keyword Arguments

stages (list[RoleAssignmentApprovalStep]) – This is the collection of stages returned when one does an expand on it.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalActorIdentityType(value)[source]

Bases: str, enum.Enum

The identity type : user/servicePrincipal.

SERVICE_PRINCIPAL = 'servicePrincipal'
USER = 'user'
class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalListResult(*, value: Optional[List[_models.RoleAssignmentApproval]] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

List of role assignment approvals.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • value (list[RoleAssignmentApproval]) – Role Assignment Approval list.

  • next_link (str) – The URL to use for getting the next set of results.

Keyword Arguments

value (list[RoleAssignmentApproval]) – Role Assignment Approval list.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalStep(*, display_name: Optional[str] = None, review_result: Optional[Union[str, _models.RoleAssignmentApprovalStepReviewResult]] = None, justification: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Role assignment approval stage properties.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The role assignment approval stage id.

  • name (str) – The role assignment approval stage name.

  • type (str) – The resource type.

  • display_name (str) – The display name for the approval stage.

  • status (str or RoleAssignmentApprovalStepStatus) – This read-only field specifies the status of an approval. Known values are: “NotStarted”, “InProgress”, “Completed”, “Expired”, “Initializing”, “Escalating”, “Completing”, and “Escalated”.

  • assigned_to_me (bool) – Indicates whether the stage is assigned to me for review.

  • reviewed_date_time (datetime) – Date Time when a decision was taken.

  • review_result (str or RoleAssignmentApprovalStepReviewResult) – The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: “Approve”, “Deny”, and “NotReviewed”.

  • justification (str) – Justification provided by approvers for their action.

  • principal_id (str) – The identity id.

  • principal_type (str or RoleAssignmentApprovalActorIdentityType) – The identity type : user/servicePrincipal. Known values are: “user” and “servicePrincipal”.

  • principal_name (str) – The identity display name.

  • user_principal_name (str) – The user principal name(if valid).

Keyword Arguments
  • display_name (str) – The display name for the approval stage.

  • review_result (str or RoleAssignmentApprovalStepReviewResult) – The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: “Approve”, “Deny”, and “NotReviewed”.

  • justification (str) – Justification provided by approvers for their action.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalStepListResult(*, value: Optional[List[_models.RoleAssignmentApprovalStep]] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

List of role assignment approval stage list.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
Keyword Arguments

value (list[RoleAssignmentApprovalStep]) – Role Assignment Approval Step list.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalStepProperties(*, display_name: Optional[str] = None, review_result: Optional[Union[str, _models.RoleAssignmentApprovalStepReviewResult]] = None, justification: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Approval Step.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • display_name (str) – The display name for the approval stage.

  • status (str or RoleAssignmentApprovalStepStatus) – This read-only field specifies the status of an approval. Known values are: “NotStarted”, “InProgress”, “Completed”, “Expired”, “Initializing”, “Escalating”, “Completing”, and “Escalated”.

  • assigned_to_me (bool) – Indicates whether the stage is assigned to me for review.

  • reviewed_date_time (datetime) – Date Time when a decision was taken.

  • review_result (str or RoleAssignmentApprovalStepReviewResult) – The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: “Approve”, “Deny”, and “NotReviewed”.

  • justification (str) – Justification provided by approvers for their action.

  • principal_id (str) – The identity id.

  • principal_type (str or RoleAssignmentApprovalActorIdentityType) – The identity type : user/servicePrincipal. Known values are: “user” and “servicePrincipal”.

  • principal_name (str) – The identity display name.

  • user_principal_name (str) – The user principal name(if valid).

Keyword Arguments
  • display_name (str) – The display name for the approval stage.

  • review_result (str or RoleAssignmentApprovalStepReviewResult) – The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny. Known values are: “Approve”, “Deny”, and “NotReviewed”.

  • justification (str) – Justification provided by approvers for their action.

class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalStepReviewResult(value)[source]

Bases: str, enum.Enum

The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny.

APPROVE = 'Approve'
DENY = 'Deny'
NOT_REVIEWED = 'NotReviewed'
class azure.mgmt.authorization.v2021_01_01_preview.models.RoleAssignmentApprovalStepStatus(value)[source]

Bases: str, enum.Enum

This read-only field specifies the status of an approval.

COMPLETED = 'Completed'
COMPLETING = 'Completing'
ESCALATED = 'Escalated'
ESCALATING = 'Escalating'
EXPIRED = 'Expired'
INITIALIZING = 'Initializing'
IN_PROGRESS = 'InProgress'
NOT_STARTED = 'NotStarted'