Google Cloud Gke Hub V1 Client - Class ResourceOptions (1.0.0)

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 version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, apiextensions/v1beta1 orapiextensions/v1.

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 version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, apiextensions/v1beta1 orapiextensions/v1.

Returns
Type Description
string

setK8SVersion

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.

Parameter
Name Description
var string
Returns
Type Description
$this