# Google Cloud Gke Hub V1 Client - Class ResourceOptions (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class ResourceOptions.

ResourceOptions represent options for Kubernetes resource generation.

Generated from protobuf message `google.cloud.gkehub.v1.ResourceOptions`

## Namespace

Google \\ Cloud \\ GkeHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ connect_version` | `string` 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. |
| `↳ v1beta1_crd` | `bool` Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for CustomResourceDefinition resources. This option should be set for clusters with Kubernetes apiserver versions \<1.16. |
| `↳ k8s_version` | `string` 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`. |
| `↳ k8s_git_version` | `string` 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. |

### getConnectVersion

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setConnectVersion

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getV1Beta1Crd

Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
CustomResourceDefinition resources.

This option should be set for clusters with Kubernetes apiserver versions
\<1.16.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setV1Beta1Crd

Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
CustomResourceDefinition resources.

This option should be set for clusters with Kubernetes apiserver versions
\<1.16.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getK8SVersion

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`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setK8SVersion

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`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getK8SGitVersion

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setK8SGitVersion

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |