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.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eResourceOptions\u003c/code\u003e class in the GKE Hub v1beta1 API provides options for Kubernetes resource generation.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceOptions\u003c/code\u003e class has properties to define the Connect agent version (\u003ccode\u003eConnectVersion\u003c/code\u003e), the Kubernetes cluster version (\u003ccode\u003eK8SVersion\u003c/code\u003e), and whether to use \u003ccode\u003eapiextensions/v1beta1\u003c/code\u003e for CustomResourceDefinition resources (\u003ccode\u003eV1Beta1Crd\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe API offers different versions of \u003ccode\u003eResourceOptions\u003c/code\u003e, with the latest being \u003ccode\u003e2.0.0-beta07\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available: a default \u003ccode\u003eResourceOptions()\u003c/code\u003e and an overload \u003ccode\u003eResourceOptions(ResourceOptions other)\u003c/code\u003e that accepts another \u003ccode\u003eResourceOptions\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]