Google Cloud Gke Hub V1 Client - Class KubernetesMetadata (0.7.1)

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
NameDescription
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
TypeDescription
string

setKubernetesApiServerVersion

Output only. Kubernetes API server version string as reported by /version.

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

getNodeCount

Output only. Node count as reported by Kubernetes nodes resources.

Returns
TypeDescription
int

setNodeCount

Output only. Node count as reported by Kubernetes nodes resources.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVcpuCount

Output only. vCPU count as reported by Kubernetes nodes resources.

Returns
TypeDescription
int

setVcpuCount

Output only. vCPU count as reported by Kubernetes nodes resources.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemoryMb

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

Returns
TypeDescription
int

setMemoryMb

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this