Class: Google::Apis::DeveloperconnectV1::GenericHttpEndpointConfig

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

Overview

Defines the configuration for connections to an HTTP service provider.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericHttpEndpointConfig

Returns a new instance of GenericHttpEndpointConfig.



1127
1128
1129
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1127

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

Instance Attribute Details

#basic_authenticationGoogle::Apis::DeveloperconnectV1::BasicAuthentication

Basic authentication with username and password. Corresponds to the JSON property basicAuthentication



1104
1105
1106
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1104

def basic_authentication
  @basic_authentication
end

#bearer_token_authenticationGoogle::Apis::DeveloperconnectV1::BearerTokenAuthentication

Bearer token authentication with a token. Corresponds to the JSON property bearerTokenAuthentication



1109
1110
1111
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1109

def bearer_token_authentication
  @bearer_token_authentication
end

#host_uriString

Required. Immutable. The service provider's https endpoint. Corresponds to the JSON property hostUri

Returns:

  • (String)


1114
1115
1116
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1114

def host_uri
  @host_uri
end

#service_directory_configGoogle::Apis::DeveloperconnectV1::ServiceDirectoryConfig

ServiceDirectoryConfig represents Service Directory configuration for a connection. Corresponds to the JSON property serviceDirectoryConfig



1120
1121
1122
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1120

def service_directory_config
  @service_directory_config
end

#ssl_ca_certificateString

Optional. The SSL certificate to use for requests to the HTTP service provider. Corresponds to the JSON property sslCaCertificate

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1125

def ssl_ca_certificate
  @ssl_ca_certificate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
1135
1136
1137
1138
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1132

def update!(**args)
  @basic_authentication = args[:basic_authentication] if args.key?(:basic_authentication)
  @bearer_token_authentication = args[:bearer_token_authentication] if args.key?(:bearer_token_authentication)
  @host_uri = args[:host_uri] if args.key?(:host_uri)
  @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
  @ssl_ca_certificate = args[:ssl_ca_certificate] if args.key?(:ssl_ca_certificate)
end