Reference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::OnPremCluster.
OnPremCluster contains information specific to GKE On-Prem clusters.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#admin_cluster
defadmin_cluster()->::Boolean
Returns
(::Boolean) — Immutable. Whether the cluster is an admin cluster.
#admin_cluster=
defadmin_cluster=(value)->::Boolean
Parameter
value (::Boolean) — Immutable. Whether the cluster is an admin cluster.
Returns
(::Boolean) — Immutable. Whether the cluster is an admin cluster.
#cluster_missing
defcluster_missing()->::Boolean
Returns
(::Boolean) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# GKE Hub V1beta1 API - Class Google::Cloud::GkeHub::V1beta1::OnPremCluster (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.14.1](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.14.1/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.13.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.13.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.12.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.12.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.11.1](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.11.1/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.10.2](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.10.2/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.9.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.9.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.8.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.8.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.7.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.7.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.6.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.6.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.5.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.5.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.4.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.4.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.3.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.3.0/Google-Cloud-GkeHub-V1beta1-OnPremCluster)\n- [0.2.2](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.2.2/Google-Cloud-GkeHub-V1beta1-OnPremCluster) \nReference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::OnPremCluster.\n\nOnPremCluster contains information specific to GKE On-Prem clusters. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #admin_cluster\n\n def admin_cluster() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Immutable. Whether the cluster is an admin cluster.\n\n### #admin_cluster=\n\n def admin_cluster=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Immutable. Whether the cluster is an admin cluster. \n**Returns**\n\n- (::Boolean) --- Immutable. Whether the cluster is an admin cluster.\n\n### #cluster_missing\n\n def cluster_missing() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- 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.\n\n### #cluster_type\n\n def cluster_type() -\u003e ::Google::Cloud::GkeHub::V1beta1::OnPremCluster::ClusterType\n\n**Returns**\n\n- ([::Google::Cloud::GkeHub::V1beta1::OnPremCluster::ClusterType](./Google-Cloud-GkeHub-V1beta1-OnPremCluster-ClusterType)) --- Immutable. The on prem cluster's type.\n\n### #cluster_type=\n\n def cluster_type=(value) -\u003e ::Google::Cloud::GkeHub::V1beta1::OnPremCluster::ClusterType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::GkeHub::V1beta1::OnPremCluster::ClusterType](./Google-Cloud-GkeHub-V1beta1-OnPremCluster-ClusterType)) --- Immutable. The on prem cluster's type. \n**Returns**\n\n- ([::Google::Cloud::GkeHub::V1beta1::OnPremCluster::ClusterType](./Google-Cloud-GkeHub-V1beta1-OnPremCluster-ClusterType)) --- Immutable. The on prem cluster's type.\n\n### #resource_link\n\n def resource_link() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:\n\n //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster\n //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster\n\n### #resource_link=\n\n def resource_link=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:\n\n\n //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster\n//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster \n**Returns**\n\n- (::String) --- Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:\n\n //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster\n //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster"]]