Class: Google::Apis::PubsubV1::OidcToken
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::OidcToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
Contains information needed for generating an OpenID Connect token.
Instance Attribute Summary collapse
-
#audience ⇒ String
Optional.
-
#service_account_email ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OidcToken
constructor
A new instance of OidcToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OidcToken
Returns a new instance of OidcToken.
1249 1250 1251 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audience ⇒ String
Optional. Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience value is
a single case-sensitive string. Having multiple values (array) for the
audience field is not supported. More info about the OIDC JWT token audience
here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
the Push endpoint URL will be used.
Corresponds to the JSON property audience
1239 1240 1241 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1239 def audience @audience end |
#service_account_email ⇒ String
Optional. Service account email used for generating the OIDC token. For more information on setting
up authentication, see Push subscriptions.
Corresponds to the JSON property serviceAccountEmail
1247 1248 1249 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1247 def service_account_email @service_account_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1254 1255 1256 1257 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1254 def update!(**args) @audience = args[:audience] if args.key?(:audience) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) end |