Class: Google::Apis::DeveloperconnectV1::GenericHttpEndpointConfig
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::GenericHttpEndpointConfig
- 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
-
#basic_authentication ⇒ Google::Apis::DeveloperconnectV1::BasicAuthentication
Basic authentication with username and password.
-
#bearer_token_authentication ⇒ Google::Apis::DeveloperconnectV1::BearerTokenAuthentication
Bearer token authentication with a token.
-
#host_uri ⇒ String
Required.
-
#service_directory_config ⇒ Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig
ServiceDirectoryConfig represents Service Directory configuration for a connection.
-
#ssl_ca_certificate ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenericHttpEndpointConfig
constructor
A new instance of GenericHttpEndpointConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_authentication ⇒ Google::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_authentication ⇒ Google::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_uri ⇒ String
Required. Immutable. The service provider's https endpoint.
Corresponds to the JSON property hostUri
1114 1115 1116 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1114 def host_uri @host_uri end |
#service_directory_config ⇒ Google::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_certificate ⇒ String
Optional. The SSL certificate to use for requests to the HTTP service provider.
Corresponds to the JSON property sslCaCertificate
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 |