class Google::Apis::IamcredentialsV1::GenerateIdTokenRequest

Attributes

audience[RW]

Required. The audience for the token, such as the API or account that this token grants access to. Corresponds to the JSON property `audience` @return [String]

delegates[RW]

The sequence of service accounts in a delegation chain. Each service account must be granted the `roles/iam.serviceAccountTokenCreator` role on its next service account in the chain. The last service account in the chain must be granted the `roles/iam.serviceAccountTokenCreator` role on the service account that is specified in the `name` field of the request. The delegates must have the following format: `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID“. The `-` wildcard character is required; replacing it with a project ID is invalid. Corresponds to the JSON property `delegates` @return [Array<String>]

include_email[RW]

Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims. Corresponds to the JSON property `includeEmail` @return [Boolean]

include_email?[RW]

Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims. Corresponds to the JSON property `includeEmail` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/iamcredentials_v1/classes.rb, line 128
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/iamcredentials_v1/classes.rb, line 133
def update!(**args)
  @audience = args[:audience] if args.key?(:audience)
  @delegates = args[:delegates] if args.key?(:delegates)
  @include_email = args[:include_email] if args.key?(:include_email)
end