OAuth2PermissionGrantOperations Class

OAuth2PermissionGrantOperations operations.

Inheritance
builtins.object
OAuth2PermissionGrantOperations

Constructor

OAuth2PermissionGrantOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

api_version

Client API version. Constant value: "1.6".

Methods

create

Grants OAuth2 permissions for the relevant resource Ids of an app.

delete

Delete a OAuth2 permission grant for the relevant resource Ids of an app.

list

Queries OAuth2 permissions grants for the relevant SP ObjectId of an app.

create

Grants OAuth2 permissions for the relevant resource Ids of an app.

create(body=None, custom_headers=None, raw=False, **operation_config)

Parameters

body
OAuth2PermissionGrant
default value: None

The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

OAuth2PermissionGrant or ClientRawResponse if raw=true

Return type

Exceptions

delete

Delete a OAuth2 permission grant for the relevant resource Ids of an app.

delete(object_id, custom_headers=None, raw=False, **operation_config)

Parameters

object_id
str
Required

The object ID of a permission grant.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

list

Queries OAuth2 permissions grants for the relevant SP ObjectId of an app.

list(filter=None, custom_headers=None, raw=False, **operation_config)

Parameters

filter
str
default value: None

This is the Service Principal ObjectId associated with the app

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of OAuth2PermissionGrant

Return type

Exceptions

Attributes

models

models = <module 'azure.graphrbac.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\graphrbac\\models\\__init__.py'>