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

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

getAdminCluster

Immutable. Whether the cluster is an admin cluster.

Returns
TypeDescription
bool

setAdminCluster

Immutable. Whether the cluster is an admin cluster.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getClusterType

Immutable. The on prem cluster's type.

Returns
TypeDescription
int

setClusterType

Immutable. The on prem cluster's type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this