Reference documentation and code samples for the Google Cloud Gke Hub V1beta1 Client class KubernetesMetadata.
KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.
Generated from protobuf message google.cloud.gkehub.v1beta1.KubernetesMetadata
Namespace
Google \ Cloud \ GkeHub \ V1beta1Methods
__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. |
↳ update_time |
Google\Protobuf\Timestamp
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
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.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |