public sealed class Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken : IMessage<Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken>, IEquatable<Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken>, IDeepCloneable<Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc v1 API class Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken.
Contains information needed for generating an OAuth token. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
Implements
IMessagePipelineTypesDestinationTypesAuthenticationConfigTypesOAuthToken, IEquatablePipelineTypesDestinationTypesAuthenticationConfigTypesOAuthToken, IDeepCloneablePipelineTypesDestinationTypesAuthenticationConfigTypesOAuthToken, IBufferMessage, IMessageNamespace
Google.Cloud.Eventarc.V1Assembly
Google.Cloud.Eventarc.V1.dll
Constructors
OAuthToken()
public OAuthToken()
OAuthToken(OAuthToken)
public OAuthToken(Pipeline.Types.Destination.Types.AuthenticationConfig.Types.OAuthToken other)
Parameter | |
---|---|
Name | Description |
other |
PipelineTypesDestinationTypesAuthenticationConfigTypesOAuthToken |
Properties
Scope
public string Scope { get; set; }
Optional. OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.
Property Value | |
---|---|
Type | Description |
string |
ServiceAccount
public string ServiceAccount { get; set; }
Required. Service account email used to generate the OAuth token. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for authenticated requests.
Property Value | |
---|---|
Type | Description |
string |
ServiceAccountAsServiceAccountName
public ServiceAccountName ServiceAccountAsServiceAccountName { get; set; }
ServiceAccountName-typed view over the ServiceAccount resource name property.
Property Value | |
---|---|
Type | Description |
ServiceAccountName |