Class: Google::Apis::EventarcV1::GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig

Inherits:
Object
  • Object
show all
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

Represents a config used to authenticate message requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig

Returns a new instance of GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig.



970
971
972
# File 'lib/google/apis/eventarc_v1/classes.rb', line 970

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#google_oidcGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken

Represents a config used to authenticate with a Google OIDC token using a GCP service account. Use this authentication method to invoke your Cloud Run and Cloud Functions destinations or HTTP endpoints that support Google OIDC. Corresponds to the JSON property googleOidc



961
962
963
# File 'lib/google/apis/eventarc_v1/classes.rb', line 961

def google_oidc
  @google_oidc
end

#oauth_tokenGoogle::Apis::EventarcV1::GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken

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. Corresponds to the JSON property oauthToken



968
969
970
# File 'lib/google/apis/eventarc_v1/classes.rb', line 968

def oauth_token
  @oauth_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



975
976
977
978
# File 'lib/google/apis/eventarc_v1/classes.rb', line 975

def update!(**args)
  @google_oidc = args[:google_oidc] if args.key?(:google_oidc)
  @oauth_token = args[:oauth_token] if args.key?(:oauth_token)
end