Class: Google::Apis::EventarcV1::GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#scope ⇒ String
Optional.
-
#service_account ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken
constructor
A new instance of GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken
Returns a new instance of GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken.
1004 1005 1006 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1004 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scope ⇒ String
Optional. OAuth scope to be used for generating OAuth access token. If not
specified, "https://www.googleapis.com/auth/cloud-platform" will be used.
Corresponds to the JSON property scope
991 992 993 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 991 def scope @scope end |
#service_account ⇒ String
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.
Corresponds to the JSON property serviceAccount
1002 1003 1004 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1002 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1009 1010 1011 1012 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1009 def update!(**args) @scope = args[:scope] if args.key?(:scope) @service_account = args[:service_account] if args.key?(:service_account) end |