# Connect Gateway v1 API - Class GenerateCredentialsRequest (1.1.0)

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

- [1.1.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/1.0.0/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest)

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

Reference documentation and code samples for the Connect Gateway v1 API class GenerateCredentialsRequest.

A request for connection information for a particular membership.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateCredentialsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateCredentialsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateCredentialsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest), [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.GkeConnect.Gateway.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1)

## Assembly

Google.Cloud.GkeConnect.Gateway.V1.dll

## Constructors

### GenerateCredentialsRequest()

    public GenerateCredentialsRequest()

### GenerateCredentialsRequest(GenerateCredentialsRequest)

    public GenerateCredentialsRequest(GenerateCredentialsRequest other)

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

## Properties

### ForceUseAgent

    public bool ForceUseAgent { get; set; }

Optional. Whether to force the use of Connect Agent-based transport.

This will return a configuration that uses Connect Agent as the underlying
transport mechanism for cluster types that would otherwise have used a
different transport. Requires that Connect Agent be installed on the
cluster. Setting this field to false is equivalent to not setting it.

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

### KubernetesNamespace

    public string KubernetesNamespace { get; set; }

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the `namespace` field in
kubeconfig context. If not specified, the `namespace` field is omitted.

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

### Name

    public string Name { get; set; }

Required. The Fleet membership resource.

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

### OperatingSystem

    public GenerateCredentialsRequest.Types.OperatingSystem OperatingSystem { get; set; }

Optional. The operating system where the kubeconfig will be used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeConnect.Gateway.V1/latest/Google.Cloud.GkeConnect.Gateway.V1.GenerateCredentialsRequest.Types.OperatingSystem` |   |

### Version

    public string Version { get; set; }

Optional. The Connect Gateway version to be used in the resulting
configuration.

Leave this field blank to let the server choose the version (recommended).

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