azure.mgmt.authorization.v2020_04_01_preview.models module

class azure.mgmt.authorization.v2020_04_01_preview.models.ErrorAdditionalInfo(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The resource management error additional info.

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

Variables
  • type (str) – The additional info type.

  • info (JSON) – The additional info.

class azure.mgmt.authorization.v2020_04_01_preview.models.ErrorDetail(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The error detail.

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

Variables
class azure.mgmt.authorization.v2020_04_01_preview.models.ErrorResponse(*, error: Optional[_models.ErrorDetail] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

Variables

error (ErrorDetail) – The error object.

Keyword Arguments

error (ErrorDetail) – The error object.

class azure.mgmt.authorization.v2020_04_01_preview.models.PrincipalType(value)[source]

Bases: str, enum.Enum

The principal type of the assigned principal ID.

FOREIGN_GROUP = 'ForeignGroup'
GROUP = 'Group'
SERVICE_PRINCIPAL = 'ServicePrincipal'
USER = 'User'
class azure.mgmt.authorization.v2020_04_01_preview.models.RoleAssignment(*, scope: Optional[str] = None, role_definition_id: Optional[str] = None, principal_id: Optional[str] = None, principal_type: Optional[Union[str, _models.PrincipalType]] = None, can_delegate: Optional[bool] = None, description: Optional[str] = None, condition: Optional[str] = None, condition_version: Optional[str] = None, created_on: Optional[datetime.datetime] = None, updated_on: Optional[datetime.datetime] = None, created_by: Optional[str] = None, updated_by: Optional[str] = None, delegated_managed_identity_resource_id: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Role Assignments.

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

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

  • name (str) – The role assignment name.

  • type (str) – The role assignment type.

  • scope (str) – The role assignment scope.

  • role_definition_id (str) – The role definition ID.

  • principal_id (str) – The principal ID.

  • principal_type (str or PrincipalType) – The principal type of the assigned principal ID. Known values are: “User”, “Group”, “ServicePrincipal”, and “ForeignGroup”.

  • can_delegate (bool) – The Delegation flag for the role assignment.

  • description (str) – Description of role assignment.

  • condition (str) – The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase ‘foo_storage_container’.

  • condition_version (str) – Version of the condition. Currently accepted value is ‘2.0’.

  • created_on (datetime) – Time it was created.

  • updated_on (datetime) – Time it was updated.

  • created_by (str) – Id of the user who created the assignment.

  • updated_by (str) – Id of the user who updated the assignment.

  • delegated_managed_identity_resource_id (str) – Id of the delegated managed identity resource.

Keyword Arguments
  • scope (str) – The role assignment scope.

  • role_definition_id (str) – The role definition ID.

  • principal_id (str) – The principal ID.

  • principal_type (str or PrincipalType) – The principal type of the assigned principal ID. Known values are: “User”, “Group”, “ServicePrincipal”, and “ForeignGroup”.

  • can_delegate (bool) – The Delegation flag for the role assignment.

  • description (str) – Description of role assignment.

  • condition (str) – The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase ‘foo_storage_container’.

  • condition_version (str) – Version of the condition. Currently accepted value is ‘2.0’.

  • created_on (datetime) – Time it was created.

  • updated_on (datetime) – Time it was updated.

  • created_by (str) – Id of the user who created the assignment.

  • updated_by (str) – Id of the user who updated the assignment.

  • delegated_managed_identity_resource_id (str) – Id of the delegated managed identity resource.

class azure.mgmt.authorization.v2020_04_01_preview.models.RoleAssignmentCreateParameters(*, role_definition_id: str, principal_id: str, principal_type: Optional[Union[str, _models.PrincipalType]] = None, can_delegate: Optional[bool] = None, description: Optional[str] = None, condition: Optional[str] = None, condition_version: Optional[str] = None, delegated_managed_identity_resource_id: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Role assignment create parameters.

All required parameters must be populated in order to send to Azure.

Variables
  • role_definition_id (str) – The role definition ID used in the role assignment. Required.

  • principal_id (str) – The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. Required.

  • principal_type (str or PrincipalType) – The principal type of the assigned principal ID. Known values are: “User”, “Group”, “ServicePrincipal”, and “ForeignGroup”.

  • can_delegate (bool) – The delegation flag used for creating a role assignment.

  • description (str) – Description of role assignment.

  • condition (str) – The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase ‘foo_storage_container’.

  • condition_version (str) – Version of the condition. Currently accepted value is ‘2.0’.

  • delegated_managed_identity_resource_id (str) – Id of the delegated managed identity resource.

Keyword Arguments
  • role_definition_id (str) – The role definition ID used in the role assignment. Required.

  • principal_id (str) – The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. Required.

  • principal_type (str or PrincipalType) – The principal type of the assigned principal ID. Known values are: “User”, “Group”, “ServicePrincipal”, and “ForeignGroup”.

  • can_delegate (bool) – The delegation flag used for creating a role assignment.

  • description (str) – Description of role assignment.

  • condition (str) – The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase ‘foo_storage_container’.

  • condition_version (str) – Version of the condition. Currently accepted value is ‘2.0’.

  • delegated_managed_identity_resource_id (str) – Id of the delegated managed identity resource.

class azure.mgmt.authorization.v2020_04_01_preview.models.RoleAssignmentFilter(*, principal_id: Optional[str] = None, can_delegate: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Role Assignments filter.

Variables
  • principal_id (str) – Returns role assignment of the specific principal.

  • can_delegate (bool) – The Delegation flag for the role assignment.

Keyword Arguments
  • principal_id (str) – Returns role assignment of the specific principal.

  • can_delegate (bool) – The Delegation flag for the role assignment.

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

Bases: azure.mgmt.authorization._serialization.Model

Role assignment list operation result.

Variables
  • value (list[RoleAssignment]) – Role assignment list.

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

Keyword Arguments
  • value (list[RoleAssignment]) – Role assignment list.

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