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.



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

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



1096
1097
1098
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1096

def basic_authentication
  @basic_authentication
end

#bearer_token_authenticationGoogle::Apis::DeveloperconnectV1::BearerTokenAuthentication

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



1101
1102
1103
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1101

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)


1106
1107
1108
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1106

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



1112
1113
1114
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1112

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)


1117
1118
1119
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1117

def ssl_ca_certificate
  @ssl_ca_certificate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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