# GKE Hub v1beta1 API - Class ResourceOptions (2.0.0-beta09)

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

- [2.0.0-beta09 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ResourceOptions)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta08/Google.Cloud.GkeHub.V1Beta1.ResourceOptions)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.ResourceOptions)

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

Reference documentation and code samples for the GKE Hub v1beta1 API class ResourceOptions.

ResourceOptions represent options for Kubernetes resource generation.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.GkeHub.V1Beta1.dll

## Constructors

### ResourceOptions()

    public ResourceOptions()

### ResourceOptions(ResourceOptions)

    public ResourceOptions(ResourceOptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ResourceOptions` |

## Properties

### ConnectVersion

    public string ConnectVersion { get; set; }

Optional. The Connect agent version to use for connect_resources. Defaults
to the latest GKE Connect version. The version must be a currently
supported version, obsolete versions will be rejected.

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

### K8SGitVersion

    public string K8SGitVersion { get; set; }

Optional. Git version of the Kubernetes cluster. This is only used to gate
the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and
above.

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

### K8SVersion

    public string K8SVersion { get; set; }

Optional. Major and minor version of the Kubernetes cluster. This is only
used to determine which version to use for the CustomResourceDefinition
resources, `apiextensions/v1beta1` or`apiextensions/v1`.

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

### V1Beta1Crd

    public bool V1Beta1Crd { get; set; }

Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
CustomResourceDefinition resources.
This option should be set for clusters with Kubernetes apiserver versions
\<1.16.

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