azure.mgmt.authorization.v2021_01_01_preview.operations module¶
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’soperationsattribute.Lists the operations available from this provider.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either Operation or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’srole_assignment_approvalattribute.Get role assignment approval.
Get role assignment approvals.
- Parameters
filter (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 Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RoleAssignmentApproval or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’srole_assignment_approval_stepattribute.Get role assignment approval.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
-
patch(approval_id: str, stage_id: str, properties: IO, *, content_type: str = "'application/json'", **kwargs: Any) → _models.RoleAssignmentApprovalStep Record a decision.
- Parameters
approval_id (str) – The id of the role assignment approval. Required.
stage_id (str) – The id of the role assignment approval stage. Required.
properties (RoleAssignmentApprovalStepProperties or IO) – Role Assignment Approval stage properties to patch. Is either a RoleAssignmentApprovalStepProperties type or a IO type. Required.
- Keyword Arguments
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
-
put(approval_id: str, stage_id: str, properties: IO, *, content_type: str = "'application/json'", **kwargs: Any) → _models.RoleAssignmentApprovalStep Record a decision.
- Parameters
approval_id (str) – The id of the role assignment approval. Required.
stage_id (str) – The id of the role assignment approval stage. Required.
properties (RoleAssignmentApprovalStepProperties or IO) – Role Assignment Approval stage properties to put. Is either a RoleAssignmentApprovalStepProperties type or a IO type. Required.
- Keyword Arguments
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’srole_assignment_approval_stepsattribute.Get role assignment approval.
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’sscope_role_assignment_approvalattribute.Get role assignment approval.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
RoleAssignmentApproval or the result of cls(response)
- Return type
- Raises
Get role assignment approvals.
- Parameters
scope (str) – The scope of the resource. Required.
filter (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 Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RoleAssignmentApproval or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’sscope_role_assignment_approval_stepattribute.Get role assignment approval.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
-
patch(approval_id: str, stage_id: str, scope: str, properties: IO, *, content_type: str = "'application/json'", **kwargs: Any) → _models.RoleAssignmentApprovalStep Record a decision.
- Parameters
approval_id (str) – The id of the role assignment approval. Required.
stage_id (str) – The id of the role assignment approval stage. Required.
scope (str) – The scope of the resource. Required.
properties (RoleAssignmentApprovalStepProperties or IO) – Role Assignment Approval stage properties to patch. Is either a RoleAssignmentApprovalStepProperties type or a IO type. Required.
- Keyword Arguments
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
-
put(approval_id: str, stage_id: str, scope: str, properties: IO, *, content_type: str = "'application/json'", **kwargs: Any) → _models.RoleAssignmentApprovalStep Record a decision.
- Parameters
approval_id (str) – The id of the role assignment approval. Required.
stage_id (str) – The id of the role assignment approval stage. Required.
scope (str) – The scope of the resource. Required.
properties (RoleAssignmentApprovalStepProperties or IO) – Role Assignment Approval stage properties to put. Is either a RoleAssignmentApprovalStepProperties type or a IO type. Required.
- Keyword Arguments
- Returns
RoleAssignmentApprovalStep or the result of cls(response)
- Return type
- Raises
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’sscope_role_assignment_approval_stepsattribute.Get role assignment approval.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
RoleAssignmentApprovalStepListResult or the result of cls(response)
- Return type
- Raises