# Developer Connect v1 API - Class GenericHTTPEndpointConfig.Types.BasicAuthentication (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.Types.BasicAuthentication)
- [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.Types.BasicAuthentication)

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

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

Basic authentication with username and password.

## Inheritance

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

## 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)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types)[BasicAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication), [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)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types)[BasicAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication), [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)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types)[BasicAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication), [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

### BasicAuthentication()

    public BasicAuthentication()

### BasicAuthentication(BasicAuthentication)

    public BasicAuthentication(GenericHTTPEndpointConfig.Types.BasicAuthentication other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `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` |

## Properties

### HasPasswordSecretVersion

    public bool HasPasswordSecretVersion { get; }

Gets whether the "password_secret_version" field is set

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

### PasswordCase

    public GenericHTTPEndpointConfig.Types.BasicAuthentication.PasswordOneofCase PasswordCase { 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.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthenticationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication.PasswordOneofCase` |   |

### PasswordSecretVersion

    public string PasswordSecretVersion { get; set; }

The password SecretManager secret version to authenticate as.

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

### PasswordSecretVersionAsSecretVersionName

    public SecretVersionName PasswordSecretVersionAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.SecretVersionName)-typed view over the [PasswordSecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GenericHTTPEndpointConfig.Types.BasicAuthentication#Google_Cloud_DeveloperConnect_V1_GenericHTTPEndpointConfig_Types_BasicAuthentication_PasswordSecretVersion) resource
name property.

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

### Username

    public string Username { get; set; }

Required. The username to authenticate as.

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