你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphOAuth2PermissionGrant Class

Definition

oAuth2PermissionGrant

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOAuth2PermissionGrantTypeConverter))]
public class MicrosoftGraphOAuth2PermissionGrant : Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphOAuth2PermissionGrant, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IAssociativeArray<object>, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphOAuth2PermissionGrantTypeConverter))>]
type MicrosoftGraphOAuth2PermissionGrant = class
    interface IMicrosoftGraphOAuth2PermissionGrant
    interface IJsonSerializable
    interface IMicrosoftGraphEntityAutoGenerated
    interface IAssociativeArray<obj>
    interface IValidates
Public Class MicrosoftGraphOAuth2PermissionGrant
Implements IAssociativeArray(Of Object), IMicrosoftGraphOAuth2PermissionGrant, IValidates
Inheritance
MicrosoftGraphOAuth2PermissionGrant
Attributes
Implements

Constructors

MicrosoftGraphOAuth2PermissionGrant()

Creates an new MicrosoftGraphOAuth2PermissionGrant instance.

Fields

__additionalProperties

Properties

ClientId

The id of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only).

ConsentType

Indicates whether authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Non-admin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. Supports $filter (eq only).

Id

Read-only.

Item[String]
PrincipalId

The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal.

ResourceId

The id of the resource service principal to which access is authorized. This identifies the API which the client is authorized to attempt to call on behalf of a signed-in user.

Scope

A space-separated list of the claim values for delegated permissions which should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the publishedPermissionScopes property of the resource service principal.

Methods

Add(String, Object)
Clear()
ContainsKey(String)
CopyFrom(IDictionary)
CopyFrom(PSObject)
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MicrosoftGraphOAuth2PermissionGrant.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MicrosoftGraphOAuth2PermissionGrant.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphOAuth2PermissionGrant.

FromJsonString(String)

Creates a new instance of MicrosoftGraphOAuth2PermissionGrant, deserializing the content from a json string.

Remove(String)
ToJson(JsonObject, SerializationMode)

Serializes this instance of MicrosoftGraphOAuth2PermissionGrant into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
TryGetValue(String, Object)
Validate(IEventListener)

Validates that this object meets the validation criteria.

Operators

Implicit(MicrosoftGraphOAuth2PermissionGrant to Dictionary<String,Object>)

Explicit Interface Implementations

IAssociativeArray<Object>.AdditionalProperties

Applies to