0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class GenericHTTPEndpointConfig.

Defines the configuration for connections to an HTTP service provider.

Generated from protobuf message `google.cloud.developerconnect.v1.GenericHTTPEndpointConfig`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ basic_authentication` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BasicAuthentication` Optional. Basic authentication with username and password. |
| `↳ bearer_token_authentication` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BearerTokenAuthentication` Optional. Bearer token authentication with a token. |
| `↳ host_uri` | `string` Required. Immutable. The service provider's https endpoint. |
| `↳ service_directory_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/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` | `string` Optional. The SSL certificate to use for requests to the HTTP service provider. |

### getBasicAuthentication

Optional. Basic authentication with username and password.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BasicAuthentication|null` |   |

### hasBasicAuthentication

### setBasicAuthentication

Optional. Basic authentication with username and password.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BasicAuthentication` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBearerTokenAuthentication

Optional. Bearer token authentication with a token.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BearerTokenAuthentication|null` |   |

### hasBearerTokenAuthentication

### setBearerTokenAuthentication

Optional. Bearer token authentication with a token.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GenericHTTPEndpointConfig.BearerTokenAuthentication` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHostUri

Required. Immutable. The service provider's https endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setHostUri

Required. Immutable. The service provider's https endpoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceDirectoryConfig

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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ServiceDirectoryConfig|null` |   |

### hasServiceDirectoryConfig

### clearServiceDirectoryConfig

### setServiceDirectoryConfig

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ServiceDirectoryConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSslCaCertificate

Optional. The SSL certificate to use for requests to the HTTP service
provider.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSslCaCertificate

Optional. The SSL certificate to use for requests to the HTTP service
provider.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthentication

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |