OAuth2PermissionGrantOperations Class
OAuth2PermissionGrantOperations operations.
- Inheritance
-
builtins.objectOAuth2PermissionGrantOperations
Constructor
OAuth2PermissionGrantOperations(client, config, serializer, deserializer)
Parameters
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
body
|
The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. default value: None
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OAuth2PermissionGrant or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
msrestazure.azure_exceptions.CloudError
|
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
Name | Description |
---|---|
object_id
Required
|
The object ID of a permission grant. |
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
list
Queries OAuth2 permissions grants for the relevant SP ObjectId of an app.
list(filter=None, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
filter
|
This is the Service Principal ObjectId associated with the app default value: None
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
An iterator like instance of OAuth2PermissionGrant |
Exceptions
Type | Description |
---|---|
msrestazure.azure_exceptions.CloudError
|
Attributes
models
models = <module 'azure.graphrbac.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\graphrbac\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for