azure.mgmt.authorization.v2021_01_01_preview.operations module

class azure.mgmt.authorization.v2021_01_01_preview.operations.Operations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s operations attribute.

list(**kwargs: Any)Iterable[azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.Operation][source]

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

ItemPaged[Operation]

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.RoleAssignmentApprovalOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s role_assignment_approval attribute.

get_by_id(approval_id: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApproval[source]

Get role assignment approval.

Parameters

approval_id (str) – The id of the role assignment approval. Required.

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

RoleAssignmentApproval

Raises

HttpResponseError

list(filter: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApproval][source]

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

ItemPaged[RoleAssignmentApproval]

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.RoleAssignmentApprovalStepOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s role_assignment_approval_step attribute.

get_by_id(approval_id: str, stage_id: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApprovalStep[source]

Get role assignment approval.

Parameters
  • approval_id (str) – The id of the role assignment approval. Required.

  • stage_id (str) – The id of the role assignment approval stage. Required.

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

RoleAssignmentApprovalStep

Raises

HttpResponseError

patch(approval_id: str, stage_id: str, properties: _models.RoleAssignmentApprovalStepProperties, *, content_type: str = "'application/json'", **kwargs: Any)_models.RoleAssignmentApprovalStep[source]
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
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

RoleAssignmentApprovalStep or the result of cls(response)

Return type

RoleAssignmentApprovalStep

Raises

HttpResponseError

put(approval_id: str, stage_id: str, properties: _models.RoleAssignmentApprovalStepProperties, *, content_type: str = "'application/json'", **kwargs: Any)_models.RoleAssignmentApprovalStep[source]
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
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

RoleAssignmentApprovalStep or the result of cls(response)

Return type

RoleAssignmentApprovalStep

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.RoleAssignmentApprovalStepsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s role_assignment_approval_steps attribute.

list(approval_id: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApprovalStepListResult[source]

Get role assignment approval.

Parameters

approval_id (str) – The id of the role assignment approval. Required.

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

RoleAssignmentApprovalStepListResult

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.ScopeRoleAssignmentApprovalOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s scope_role_assignment_approval attribute.

get_by_id(approval_id: str, scope: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApproval[source]

Get role assignment approval.

Parameters
  • approval_id (str) – The id of the role assignment approval. Required.

  • scope (str) – The scope of the resource. Required.

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

RoleAssignmentApproval

Raises

HttpResponseError

list(scope: str, filter: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApproval][source]

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

ItemPaged[RoleAssignmentApproval]

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.ScopeRoleAssignmentApprovalStepOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s scope_role_assignment_approval_step attribute.

get_by_id(approval_id: str, stage_id: str, scope: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApprovalStep[source]

Get role assignment approval.

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.

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

RoleAssignmentApprovalStep

Raises

HttpResponseError

patch(approval_id: str, stage_id: str, scope: str, properties: _models.RoleAssignmentApprovalStepProperties, *, content_type: str = "'application/json'", **kwargs: Any)_models.RoleAssignmentApprovalStep[source]
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
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

RoleAssignmentApprovalStep or the result of cls(response)

Return type

RoleAssignmentApprovalStep

Raises

HttpResponseError

put(approval_id: str, stage_id: str, scope: str, properties: _models.RoleAssignmentApprovalStepProperties, *, content_type: str = "'application/json'", **kwargs: Any)_models.RoleAssignmentApprovalStep[source]
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
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

RoleAssignmentApprovalStep or the result of cls(response)

Return type

RoleAssignmentApprovalStep

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>
class azure.mgmt.authorization.v2021_01_01_preview.operations.ScopeRoleAssignmentApprovalStepsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through AuthorizationManagementClient’s scope_role_assignment_approval_steps attribute.

list(approval_id: str, scope: str, **kwargs: Any)azure.mgmt.authorization.v2021_01_01_preview.models._models_py3.RoleAssignmentApprovalStepListResult[source]

Get role assignment approval.

Parameters
  • approval_id (str) – The id of the role assignment approval. Required.

  • scope (str) – The scope of the resource. Required.

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

RoleAssignmentApprovalStepListResult

Raises

HttpResponseError

models = <module 'azure.mgmt.authorization.v2021_01_01_preview.models' from '/mnt/vss/_work/1/s/sdk/authorization/azure-mgmt-authorization/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/authorization/v2021_01_01_preview/models/__init__.py'>