# Developer Connect v1 API - Class GenericHTTPEndpointConfig (1.0.0-beta04)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta04 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/1.0.0-beta03/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig)

    public sealed class GenericHTTPEndpointConfig : IMessage<GenericHTTPEndpointConfig>, IEquatable<GenericHTTPEndpointConfig>, IDeepCloneable<GenericHTTPEndpointConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Developer Connect v1 API class GenericHTTPEndpointConfig.

Defines the configuration for connections to an HTTP service provider.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GenericHTTPEndpointConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenericHTTPEndpointConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenericHTTPEndpointConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenericHTTPEndpointConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DeveloperConnect.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1)

## Assembly

Google.Cloud.DeveloperConnect.V1.dll

## Constructors

### GenericHTTPEndpointConfig()

    public GenericHTTPEndpointConfig()

### GenericHTTPEndpointConfig(GenericHTTPEndpointConfig)

    public GenericHTTPEndpointConfig(GenericHTTPEndpointConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig` |

## Properties

### AuthenticationCase

    public GenericHTTPEndpointConfig.AuthenticationOneofCase AuthenticationCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.AuthenticationOneofCase` |   |

### BasicAuthentication

    public GenericHTTPEndpointConfig.Types.BasicAuthentication BasicAuthentication { get; set; }

Optional. Basic authentication with username and password.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication` |   |

### BearerTokenAuthentication

    public GenericHTTPEndpointConfig.Types.BearerTokenAuthentication BearerTokenAuthentication { get; set; }

Optional. Bearer token authentication with a token.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BearerTokenAuthentication` |   |

### HostUri

    public string HostUri { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceDirectoryConfig

    public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.ServiceDirectoryConfig` |   |

### SslCaCertificate

    public string SslCaCertificate { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |