Google Cloud Gke Hub V1beta1 Client - Class OnPremCluster (0.9.5)

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

OnPremCluster contains information specific to GKE On-Prem clusters.

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

Namespace

Google \ Cloud \ GkeHub \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_link string

Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster

↳ cluster_missing bool

Output only. If cluster_missing is set then it denotes that API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no longer exists.

↳ admin_cluster bool

Immutable. Whether the cluster is an admin cluster.

↳ cluster_type int

Immutable. The on prem cluster's type.

Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster

Returns
Type Description
string

Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster

Parameter
Name Description
var string
Returns
Type Description
$this

getClusterMissing

Output only. If cluster_missing is set then it denotes that API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no longer exists.

Returns
Type Description
bool

setClusterMissing

Output only. If cluster_missing is set then it denotes that API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no longer exists.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAdminCluster

Immutable. Whether the cluster is an admin cluster.

Returns
Type Description
bool

setAdminCluster

Immutable. Whether the cluster is an admin cluster.

Parameter
Name Description
var bool
Returns
Type Description
$this

getClusterType

Immutable. The on prem cluster's type.

Returns
Type Description
int

setClusterType

Immutable. The on prem cluster's type.

Parameter
Name Description
var int
Returns
Type Description
$this