# Developer Connect V1 API - Class Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig.

Defines the configuration for connections to an HTTP service provider.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #basic_authentication

    def basic_authentication() -> ::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication

**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BasicAuthentication)) --- Optional. Basic authentication with username and password.


  Note: The following fields are mutually exclusive: `basic_authentication`, `bearer_token_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #basic_authentication=

    def basic_authentication=(value) -> ::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication

**Parameter**

- **value** ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BasicAuthentication)) --- Optional. Basic authentication with username and password.


  Note: The following fields are mutually exclusive: `basic_authentication`, `bearer_token_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BasicAuthentication)) --- Optional. Basic authentication with username and password.


  Note: The following fields are mutually exclusive: `basic_authentication`, `bearer_token_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #bearer_token_authentication

    def bearer_token_authentication() -> ::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication

**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BearerTokenAuthentication)) --- Optional. Bearer token authentication with a token.


  Note: The following fields are mutually exclusive: `bearer_token_authentication`, `basic_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #bearer_token_authentication=

    def bearer_token_authentication=(value) -> ::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication

**Parameter**

- **value** ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BearerTokenAuthentication)) --- Optional. Bearer token authentication with a token.


  Note: The following fields are mutually exclusive: `bearer_token_authentication`, `basic_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-GenericHTTPEndpointConfig-BearerTokenAuthentication)) --- Optional. Bearer token authentication with a token.


  Note: The following fields are mutually exclusive: `bearer_token_authentication`, `basic_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #host_uri

    def host_uri() -> ::String

**Returns**

- (::String) --- Required. Immutable. The service provider's https endpoint.

### #host_uri=

    def host_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. The service provider's https endpoint.
**Returns**

- (::String) --- Required. Immutable. The service provider's https endpoint.

### #service_directory_config

    def service_directory_config() -> ::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig

**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ServiceDirectoryConfig)) --- Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.

### #service_directory_config=

    def service_directory_config=(value) -> ::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig

**Parameter**

- **value** ([::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ServiceDirectoryConfig)) --- Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ServiceDirectoryConfig)) --- Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.

### #ssl_ca_certificate

    def ssl_ca_certificate() -> ::String

**Returns**

- (::String) --- Optional. The SSL certificate to use for requests to the HTTP service provider.

### #ssl_ca_certificate=

    def ssl_ca_certificate=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The SSL certificate to use for requests to the HTTP service provider.
**Returns**

- (::String) --- Optional. The SSL certificate to use for requests to the HTTP service provider.