Class: Google::Apis::ApihubV1::GoogleCloudApihubV1AuthConfigTemplate

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

AuthConfigTemplate represents the authentication template for a plugin.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1AuthConfigTemplate

Returns a new instance of GoogleCloudApihubV1AuthConfigTemplate.



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

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

Instance Attribute Details

#service_accountGoogle::Apis::ApihubV1::GoogleCloudApihubV1GoogleServiceAccountConfig

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



1055
1056
1057
# File 'lib/google/apis/apihub_v1/classes.rb', line 1055

def 
  @service_account
end

#supported_auth_typesArray<String>

Required. The list of authentication types supported by the plugin. Corresponds to the JSON property supportedAuthTypes

Returns:

  • (Array<String>)


1060
1061
1062
# File 'lib/google/apis/apihub_v1/classes.rb', line 1060

def supported_auth_types
  @supported_auth_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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