Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class KubernetesMetadata.
KubernetesMetadata provides informational metadata for Memberships
representing Kubernetes clusters.
Generated from protobuf messagegoogle.cloud.gkehub.v1.KubernetesMetadata
Namespace
Google \ Cloud \ GkeHub \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ kubernetes_api_server_version
string
Output only. Kubernetes API server version string as reported by/version.
↳ node_provider_id
string
Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.
↳ node_count
int
Output only. Node count as reported by Kubernetes nodes resources.
↳ vcpu_count
int
Output only. vCPU count as reported by Kubernetes nodes resources.
↳ memory_mb
int
Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.
Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.
getKubernetesApiServerVersion
Output only. Kubernetes API server version string as reported by/version.
Returns
Type
Description
string
setKubernetesApiServerVersion
Output only. Kubernetes API server version string as reported by/version.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNodeProviderId
Output only. Node providerID as reported by the first node in the list of
nodes on the Kubernetes endpoint. On Kubernetes platforms that support
zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
node_provider_id will be empty.
Returns
Type
Description
string
setNodeProviderId
Output only. Node providerID as reported by the first node in the list of
nodes on the Kubernetes endpoint. On Kubernetes platforms that support
zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
node_provider_id will be empty.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNodeCount
Output only. Node count as reported by Kubernetes nodes resources.
Returns
Type
Description
int
setNodeCount
Output only. Node count as reported by Kubernetes nodes resources.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getVcpuCount
Output only. vCPU count as reported by Kubernetes nodes resources.
Returns
Type
Description
int
setVcpuCount
Output only. vCPU count as reported by Kubernetes nodes resources.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getMemoryMb
Output only. The total memory capacity as reported by the sum of all
Kubernetes nodes resources, defined in MB.
Returns
Type
Description
int
setMemoryMb
Output only. The total memory capacity as reported by the sum of all
Kubernetes nodes resources, defined in MB.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getUpdateTime
Output only. The time at which these details were last updated. This
update_time is different from the Membership-level update_time since
EndpointDetails are updated internally for API consumers.
Output only. The time at which these details were last updated. This
update_time is different from the Membership-level update_time since
EndpointDetails are updated internally for API consumers.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Gke Hub V1 Client - Class KubernetesMetadata (1.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.6 (latest)](/php/docs/reference/cloud-gke-hub/latest/V1.KubernetesMetadata)\n- [1.0.5](/php/docs/reference/cloud-gke-hub/1.0.5/V1.KubernetesMetadata)\n- [0.10.0](/php/docs/reference/cloud-gke-hub/0.10.0/V1.KubernetesMetadata)\n- [0.9.5](/php/docs/reference/cloud-gke-hub/0.9.5/V1.KubernetesMetadata)\n- [0.8.2](/php/docs/reference/cloud-gke-hub/0.8.2/V1.KubernetesMetadata)\n- [0.7.1](/php/docs/reference/cloud-gke-hub/0.7.1/V1.KubernetesMetadata)\n- [0.6.3](/php/docs/reference/cloud-gke-hub/0.6.3/V1.KubernetesMetadata)\n- [0.5.6](/php/docs/reference/cloud-gke-hub/0.5.6/V1.KubernetesMetadata) \nReference documentation and code samples for the Google Cloud Gke Hub V1 Client class KubernetesMetadata.\n\nKubernetesMetadata provides informational metadata for Memberships\nrepresenting Kubernetes clusters.\n\nGenerated from protobuf message `google.cloud.gkehub.v1.KubernetesMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeHub \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKubernetesApiServerVersion\n\nOutput only. Kubernetes API server version string as reported by\n`/version`.\n\n### setKubernetesApiServerVersion\n\nOutput only. Kubernetes API server version string as reported by\n`/version`.\n\n### getNodeProviderId\n\nOutput only. Node providerID as reported by the first node in the list of\nnodes on the Kubernetes endpoint. On Kubernetes platforms that support\nzero-node clusters (like GKE-on-GCP), the node_count will be zero and the\nnode_provider_id will be empty.\n\n### setNodeProviderId\n\nOutput only. Node providerID as reported by the first node in the list of\nnodes on the Kubernetes endpoint. On Kubernetes platforms that support\nzero-node clusters (like GKE-on-GCP), the node_count will be zero and the\nnode_provider_id will be empty.\n\n### getNodeCount\n\nOutput only. Node count as reported by Kubernetes nodes resources.\n\n### setNodeCount\n\nOutput only. Node count as reported by Kubernetes nodes resources.\n\n### getVcpuCount\n\nOutput only. vCPU count as reported by Kubernetes nodes resources.\n\n### setVcpuCount\n\nOutput only. vCPU count as reported by Kubernetes nodes resources.\n\n### getMemoryMb\n\nOutput only. The total memory capacity as reported by the sum of all\nKubernetes nodes resources, defined in MB.\n\n### setMemoryMb\n\nOutput only. The total memory capacity as reported by the sum of all\nKubernetes nodes resources, defined in MB.\n\n### getUpdateTime\n\nOutput only. The time at which these details were last updated. This\nupdate_time is different from the Membership-level update_time since\nEndpointDetails are updated internally for API consumers.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time at which these details were last updated. This\nupdate_time is different from the Membership-level update_time since\nEndpointDetails are updated internally for API consumers."]]