class Google::Apis::CloudtasksV2beta3::OidcToken
Contains information needed for generating an [OpenID Connect token](https:// developers.google.com/identity/protocols/OpenIDConnect). This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
Attributes
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used. Corresponds to the JSON property `audience` @return [String]
[Service account email](cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account. Corresponds to the JSON property `serviceAccountEmail` @return [String]
Public Class Methods
# File lib/google/apis/cloudtasks_v2beta3/classes.rb, line 774 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudtasks_v2beta3/classes.rb, line 779 def update!(**args) @audience = args[:audience] if args.key?(:audience) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) end