Class: Google::Apis::CesV1::ApiAuthentication
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::ApiAuthentication
- 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
-
#api_key_config ⇒ Google::Apis::CesV1::ApiKeyConfig
Configurations for authentication with API key.
-
#bearer_token_config ⇒ Google::Apis::CesV1::BearerTokenConfig
Configurations for authentication with a bearer token.
-
#oauth_config ⇒ Google::Apis::CesV1::OAuthConfig
Configurations for authentication with OAuth.
-
#service_account_auth_config ⇒ Google::Apis::CesV1::ServiceAccountAuthConfig
Configurations for authentication using a custom service account.
-
#service_agent_id_token_auth_config ⇒ Google::Apis::CesV1::ServiceAgentIdTokenAuthConfig
Configurations for authentication with ID token generated from service agent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiAuthentication
constructor
A new instance of ApiAuthentication.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiAuthentication
Returns a new instance of ApiAuthentication.
525 526 527 |
# File 'lib/google/apis/ces_v1/classes.rb', line 525 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key_config ⇒ Google::Apis::CesV1::ApiKeyConfig
Configurations for authentication with API key.
Corresponds to the JSON property apiKeyConfig
502 503 504 |
# File 'lib/google/apis/ces_v1/classes.rb', line 502 def api_key_config @api_key_config end |
#bearer_token_config ⇒ Google::Apis::CesV1::BearerTokenConfig
Configurations for authentication with a bearer token.
Corresponds to the JSON property bearerTokenConfig
507 508 509 |
# File 'lib/google/apis/ces_v1/classes.rb', line 507 def bearer_token_config @bearer_token_config end |
#oauth_config ⇒ Google::Apis::CesV1::OAuthConfig
Configurations for authentication with OAuth.
Corresponds to the JSON property oauthConfig
512 513 514 |
# File 'lib/google/apis/ces_v1/classes.rb', line 512 def oauth_config @oauth_config end |
#service_account_auth_config ⇒ Google::Apis::CesV1::ServiceAccountAuthConfig
Configurations for authentication using a custom service account.
Corresponds to the JSON property serviceAccountAuthConfig
517 518 519 |
# File 'lib/google/apis/ces_v1/classes.rb', line 517 def service_account_auth_config @service_account_auth_config end |
#service_agent_id_token_auth_config ⇒ Google::Apis::CesV1::ServiceAgentIdTokenAuthConfig
Configurations for authentication with ID token generated from service agent.
Corresponds to the JSON property serviceAgentIdTokenAuthConfig
523 524 525 |
# File 'lib/google/apis/ces_v1/classes.rb', line 523 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
530 531 532 533 534 535 536 |
# File 'lib/google/apis/ces_v1/classes.rb', line 530 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 |