public sealed class ResourceOptions : IMessage<ResourceOptions>, IEquatable<ResourceOptions>, IDeepCloneable<ResourceOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1 API class ResourceOptions.
ResourceOptions represent options for Kubernetes resource generation.
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.
Optional. Major version of the Kubernetes cluster. This is only used to
determine which version to use for the CustomResourceDefinition resources,
apiextensions/v1beta1 orapiextensions/v1.
Optional. Use apiextensions/v1beta1 instead of apiextensions/v1 for
CustomResourceDefinition resources.
This option should be set for clusters with Kubernetes apiserver versions
<1.16.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eResourceOptions\u003c/code\u003e class within the Google Cloud GKE Hub v1 API, detailing its structure and functionality for Kubernetes resource generation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceOptions\u003c/code\u003e class has a current latest version of 2.5.0, with past versions listed for reference, ranging from 1.0.0 to 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class, inheriting from \u003ccode\u003eobject\u003c/code\u003e, implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, highlighting its integration within the Google.Protobuf framework.\u003c/p\u003e\n"],["\u003cp\u003eKey properties within \u003ccode\u003eResourceOptions\u003c/code\u003e include \u003ccode\u003eConnectVersion\u003c/code\u003e for specifying the GKE Connect agent version, \u003ccode\u003eK8SVersion\u003c/code\u003e for the Kubernetes cluster version, and \u003ccode\u003eV1Beta1Crd\u003c/code\u003e to opt for \u003ccode\u003eapiextensions/v1beta1\u003c/code\u003e in older Kubernetes versions.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1 API - Class ResourceOptions (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.ResourceOptions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.ResourceOptions) \n\n public sealed class ResourceOptions : IMessage\u003cResourceOptions\u003e, IEquatable\u003cResourceOptions\u003e, IDeepCloneable\u003cResourceOptions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1 API class ResourceOptions.\n\nResourceOptions represent options for Kubernetes resource generation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourceOptions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceOptions](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ResourceOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceOptions](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ResourceOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourceOptions](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.dll\n\nConstructors\n------------\n\n### ResourceOptions()\n\n public ResourceOptions()\n\n### ResourceOptions(ResourceOptions)\n\n public ResourceOptions(ResourceOptions other)\n\nProperties\n----------\n\n### ConnectVersion\n\n public string ConnectVersion { get; set; }\n\nOptional. The Connect agent version to use for connect_resources. Defaults\nto the latest GKE Connect version. The version must be a currently\nsupported version, obsolete versions will be rejected.\n\n### K8SVersion\n\n public string K8SVersion { get; set; }\n\nOptional. Major version of the Kubernetes cluster. This is only used to\ndetermine which version to use for the CustomResourceDefinition resources,\n`apiextensions/v1beta1` or`apiextensions/v1`.\n\n### V1Beta1Crd\n\n public bool V1Beta1Crd { get; set; }\n\nOptional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for\nCustomResourceDefinition resources.\nThis option should be set for clusters with Kubernetes apiserver versions\n\\\u003c1.16."]]