Google Cloud Gke Hub V1beta1 Client - Class ResourceOptions (0.5.6)

Reference documentation and code samples for the Google Cloud Gke Hub V1beta1 Client class ResourceOptions.

ResourceOptions represent options for Kubernetes resource generation.

Generated from protobuf message google.cloud.gkehub.v1beta1.ResourceOptions

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this