Google Cloud Gke Hub V1 Client - Class MembershipEndpoint (0.6.3)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class MembershipEndpoint.

MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.

Generated from protobuf message google.cloud.gkehub.v1.MembershipEndpoint

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ gke_cluster Google\Cloud\GkeHub\V1\GkeCluster

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

↳ kubernetes_metadata Google\Cloud\GkeHub\V1\KubernetesMetadata

Output only. Useful Kubernetes-specific metadata.

↳ kubernetes_resource Google\Cloud\GkeHub\V1\KubernetesResource

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources: * Ensure that the cluster is exclusively registered to one and only one Hub Membership. * Propagate Workload Pool Information available in the Membership Authority field. * Ensure proper initial configuration of default Hub Features.

↳ google_managed bool

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

getGkeCluster

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

Returns
TypeDescription
Google\Cloud\GkeHub\V1\GkeCluster|null

hasGkeCluster

clearGkeCluster

setGkeCluster

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

Parameter
NameDescription
var Google\Cloud\GkeHub\V1\GkeCluster
Returns
TypeDescription
$this

getKubernetesMetadata

Output only. Useful Kubernetes-specific metadata.

Returns
TypeDescription
Google\Cloud\GkeHub\V1\KubernetesMetadata|null

hasKubernetesMetadata

clearKubernetesMetadata

setKubernetesMetadata

Output only. Useful Kubernetes-specific metadata.

Parameter
NameDescription
var Google\Cloud\GkeHub\V1\KubernetesMetadata
Returns
TypeDescription
$this

getKubernetesResource

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
    • Ensure proper initial configuration of default Hub Features.
Returns
TypeDescription
Google\Cloud\GkeHub\V1\KubernetesResource|null

hasKubernetesResource

clearKubernetesResource

setKubernetesResource

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  • Propagate Workload Pool Information available in the Membership Authority field.
    • Ensure proper initial configuration of default Hub Features.
Parameter
NameDescription
var Google\Cloud\GkeHub\V1\KubernetesResource
Returns
TypeDescription
$this

getGoogleManaged

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

Returns
TypeDescription
bool

setGoogleManaged

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this