Class: Google::Apis::CesV1::ApiAuthentication

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Authentication information required for API calls.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiAuthentication

Returns a new instance of ApiAuthentication.



680
681
682
# File 'lib/google/apis/ces_v1/classes.rb', line 680

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

Instance Attribute Details

#api_key_configGoogle::Apis::CesV1::ApiKeyConfig

Configurations for authentication with API key. Corresponds to the JSON property apiKeyConfig



657
658
659
# File 'lib/google/apis/ces_v1/classes.rb', line 657

def api_key_config
  @api_key_config
end

#bearer_token_configGoogle::Apis::CesV1::BearerTokenConfig

Configurations for authentication with a bearer token. Corresponds to the JSON property bearerTokenConfig



662
663
664
# File 'lib/google/apis/ces_v1/classes.rb', line 662

def bearer_token_config
  @bearer_token_config
end

#oauth_configGoogle::Apis::CesV1::OAuthConfig

Configurations for authentication with OAuth. Corresponds to the JSON property oauthConfig



667
668
669
# File 'lib/google/apis/ces_v1/classes.rb', line 667

def oauth_config
  @oauth_config
end

#service_account_auth_configGoogle::Apis::CesV1::ServiceAccountAuthConfig

Configurations for authentication using a custom service account. Corresponds to the JSON property serviceAccountAuthConfig



672
673
674
# File 'lib/google/apis/ces_v1/classes.rb', line 672

def 
  @service_account_auth_config
end

#service_agent_id_token_auth_configGoogle::Apis::CesV1::ServiceAgentIdTokenAuthConfig

Configurations for authentication with ID token generated from service agent. Corresponds to the JSON property serviceAgentIdTokenAuthConfig



678
679
680
# File 'lib/google/apis/ces_v1/classes.rb', line 678

def service_agent_id_token_auth_config
  @service_agent_id_token_auth_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



685
686
687
688
689
690
691
# File 'lib/google/apis/ces_v1/classes.rb', line 685

def update!(**args)
  @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
  @bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
  @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
  @service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
  @service_agent_id_token_auth_config = args[:service_agent_id_token_auth_config] if args.key?(:service_agent_id_token_auth_config)
end