Class: Google::Apis::ApihubV1::GoogleCloudApihubV1AuthConfig

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

Overview

AuthConfig represents the authentication information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1AuthConfig

Returns a new instance of GoogleCloudApihubV1AuthConfig.



1034
1035
1036
# File 'lib/google/apis/apihub_v1/classes.rb', line 1034

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

Instance Attribute Details

#api_key_configGoogle::Apis::ApihubV1::GoogleCloudApihubV1ApiKeyConfig

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



1011
1012
1013
# File 'lib/google/apis/apihub_v1/classes.rb', line 1011

def api_key_config
  @api_key_config
end

#auth_typeString

Required. The authentication type. Corresponds to the JSON property authType

Returns:

  • (String)


1016
1017
1018
# File 'lib/google/apis/apihub_v1/classes.rb', line 1016

def auth_type
  @auth_type
end

#google_service_account_configGoogle::Apis::ApihubV1::GoogleCloudApihubV1GoogleServiceAccountConfig

Config for Google service account authentication. Corresponds to the JSON property googleServiceAccountConfig



1021
1022
1023
# File 'lib/google/apis/apihub_v1/classes.rb', line 1021

def 
  @google_service_account_config
end

#oauth2_client_credentials_configGoogle::Apis::ApihubV1::GoogleCloudApihubV1Oauth2ClientCredentialsConfig

Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Corresponds to the JSON property oauth2ClientCredentialsConfig



1027
1028
1029
# File 'lib/google/apis/apihub_v1/classes.rb', line 1027

def oauth2_client_credentials_config
  @oauth2_client_credentials_config
end

#user_password_configGoogle::Apis::ApihubV1::GoogleCloudApihubV1UserPasswordConfig

Parameters to support Username and Password Authentication. Corresponds to the JSON property userPasswordConfig



1032
1033
1034
# File 'lib/google/apis/apihub_v1/classes.rb', line 1032

def user_password_config
  @user_password_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1039
1040
1041
1042
1043
1044
1045
# File 'lib/google/apis/apihub_v1/classes.rb', line 1039

def update!(**args)
  @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
  @auth_type = args[:auth_type] if args.key?(:auth_type)
  @google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
  @oauth2_client_credentials_config = args[:oauth2_client_credentials_config] if args.key?(:oauth2_client_credentials_config)
  @user_password_config = args[:user_password_config] if args.key?(:user_password_config)
end