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.



1081
1082
1083
# File 'lib/google/apis/apihub_v1/classes.rb', line 1081

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



1058
1059
1060
# File 'lib/google/apis/apihub_v1/classes.rb', line 1058

def api_key_config
  @api_key_config
end

#auth_typeString

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

Returns:

  • (String)


1063
1064
1065
# File 'lib/google/apis/apihub_v1/classes.rb', line 1063

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



1068
1069
1070
# File 'lib/google/apis/apihub_v1/classes.rb', line 1068

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



1074
1075
1076
# File 'lib/google/apis/apihub_v1/classes.rb', line 1074

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



1079
1080
1081
# File 'lib/google/apis/apihub_v1/classes.rb', line 1079

def user_password_config
  @user_password_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1086
1087
1088
1089
1090
1091
1092
# File 'lib/google/apis/apihub_v1/classes.rb', line 1086

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