# Google Cloud Gke Hub V1 Client - Class KubernetesMetadata (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 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 message `google.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. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/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** |
| `https://protobuf.dev/reference/php/api-docs/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` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |