NAME
Google::Cloud::Gkehub::V1::Membership - Compiled Protocol Buffers messages for google/cloud/gkehub/v1/membership.proto
SYNOPSIS
use Google::Cloud::Gkehub::V1::Membership;
my $msg = Google::Cloud::Gkehub::V1::Membership::Membership->new({
endpoint => $endpoint,
name => $name,
labels => $labels,
description => $description,
});
# Read or update a field
my $val = $msg->endpoint();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Gkehub::V1::Membership::Membership->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/gkehub/v1/membership.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Gkehub::V1::Membership::Membership
Membership contains information about a member cluster.
Inherits from Protobuf::Message.
Accessors
$msg->endpoint()/$msg->endpoint($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::MembershipEndpoint)Optional. Endpoint information to reach this member.
$msg->name()/$msg->name($value)Type:
StringOutput only. The full, unique name of this Membership resource in the format `projects/*/locations/*/memberships/{membership_id}`, set during creation.
`membership_id` must be a valid RFC 1123 compliant DNS label:
1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric characterWhich can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::Membership::LabelsEntry)Optional. Labels for this membership.
$msg->description()/$msg->description($value)Type:
StringOutput only. Description of this membership, limited to 63 characters. Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
This field is present for legacy purposes.
$msg->state()/$msg->state($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::MembershipState)Output only. State of the Membership resource.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the Membership was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the Membership was last updated.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the Membership was deleted.
$msg->external_id()/$msg->external_id($value)Type:
StringOptional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended.
The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.
$msg->last_connection_time()/$msg->last_connection_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. For clusters using Connect, the timestamp of the most recent connection established with Google Cloud. This time is updated every several minutes, not continuously. For clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset.
$msg->unique_id()/$msg->unique_id($value)Type:
StringOutput only. Google-generated UUID for this resource. This is unique across all Membership resources. If a Membership resource is deleted and another resource with the same name is created, it gets a different unique_id.
$msg->authority()/$msg->authority($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::Authority)Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
$msg->monitoring_config()/$msg->monitoring_config($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::MonitoringConfig)Optional. The monitoring config information for this membership.
Google::Cloud::Gkehub::V1::Membership::MembershipEndpoint
MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.
Inherits from Protobuf::Message.
Accessors
$msg->gke_cluster()/$msg->gke_cluster($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::GkeCluster)Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
$msg->kubernetes_metadata()/$msg->kubernetes_metadata($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::KubernetesMetadata)Output only. Useful Kubernetes-specific metadata.
$msg->kubernetes_resource()/$msg->kubernetes_resource($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::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.$msg->google_managed()/$msg->google_managed($value)Type:
BoolOutput only. Whether the lifecycle of this membership is managed by a google cluster platform service.
Google::Cloud::Gkehub::V1::Membership::KubernetesResource
KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.
Inherits from Protobuf::Message.
Accessors
$msg->membership_cr_manifest()/$msg->membership_cr_manifest($value)Type:
StringInput only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly.
Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.
$msg->membership_resources()/$msg->membership_resources($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::ResourceManifest)Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update.
This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.
$msg->connect_resources()/$msg->connect_resources($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::ResourceManifest)Output only. The Kubernetes resources for installing the GKE Connect agent
This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.
$msg->resource_options()/$msg->resource_options($value)Type:
Message(Google::Cloud::Gkehub::V1::Membership::ResourceOptions)Optional. Options for Kubernetes resource generation.
Google::Cloud::Gkehub::V1::Membership::ResourceOptions
ResourceOptions represent options for Kubernetes resource generation.
Inherits from Protobuf::Message.
Accessors
$msg->connect_version()/$msg->connect_version($value)Type:
StringOptional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions will be rejected.
$msg->v1beta1_crd()/$msg->v1beta1_crd($value)Type:
BoolOptional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for CustomResourceDefinition resources. This option should be set for clusters with Kubernetes apiserver versions <1.16.
$msg->k8s_version()/$msg->k8s_version($value)Type:
StringOptional. Major and minor version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1` or`apiextensions/v1`.
$msg->k8s_git_version()/$msg->k8s_git_version($value)Type:
StringOptional. Git version of the Kubernetes cluster. This is only used to gate the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and above.
Google::Cloud::Gkehub::V1::Membership::ResourceManifest
ResourceManifest represents a single Kubernetes resource to be applied to the cluster.
Inherits from Protobuf::Message.
Accessors
$msg->manifest()/$msg->manifest($value)Type:
StringYAML manifest of the resource.
$msg->cluster_scoped()/$msg->cluster_scoped($value)Type:
BoolWhether the resource provided in the manifest is `cluster_scoped`. If unset, the manifest is assumed to be namespace scoped.
This field is used for REST mapping when applying the resource in a cluster.
Google::Cloud::Gkehub::V1::Membership::GkeCluster
GkeCluster contains information specific to GKE clusters.
Inherits from Protobuf::Message.
Accessors
$msg->resource_link()/$msg->resource_link($value)Type:
StringImmutable. Self-link of the Google Cloud resource for the GKE cluster. For example:
//container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
Zonal clusters are also supported.
$msg->cluster_missing()/$msg->cluster_missing($value)Type:
BoolOutput only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane.
Google::Cloud::Gkehub::V1::Membership::KubernetesMetadata
KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.
Inherits from Protobuf::Message.
Accessors
$msg->kubernetes_api_server_version()/$msg->kubernetes_api_server_version($value)Type:
StringOutput only. Kubernetes API server version string as reported by `/version`.
$msg->node_provider_id()/$msg->node_provider_id($value)Type:
StringOutput 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.
$msg->node_count()/$msg->node_count($value)Type:
Int32Output only. Node count as reported by Kubernetes nodes resources.
$msg->vcpu_count()/$msg->vcpu_count($value)Type:
Int32Output only. vCPU count as reported by Kubernetes nodes resources.
$msg->memory_mb()/$msg->memory_mb($value)Type:
Int32Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::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.
Google::Cloud::Gkehub::V1::Membership::MonitoringConfig
This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringImmutable. Project used to report Metrics
$msg->location()/$msg->location($value)Type:
StringImmutable. Location used to report Metrics
$msg->cluster()/$msg->cluster($value)Type:
StringImmutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in format `{azureClusters, awsClusters}/cluster_name`.
$msg->kubernetes_metrics_prefix()/$msg->kubernetes_metrics_prefix($value)Type:
StringKubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos
$msg->cluster_hash()/$msg->cluster_hash($value)Type:
StringImmutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.
Google::Cloud::Gkehub::V1::Membership::MembershipState
MembershipState describes the state of a Membership resource.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Enum(Google::Cloud::Gkehub::V1::MembershipState::Code)Output only. The current state of the Membership resource.
Enum: MembershipState::Code
CODE_UNSPECIFIED=>0CREATING=>1READY=>2DELETING=>3UPDATING=>4SERVICE_UPDATING=>5
Google::Cloud::Gkehub::V1::Membership::Authority
Authority encodes how Google will recognize identities from this Membership. See the workload identity documentation for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
Inherits from Protobuf::Message.
Accessors
$msg->issuer()/$msg->issuer($value)Type:
StringOptional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters.
If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer.
Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
$msg->workload_identity_pool()/$msg->workload_identity_pool($value)Type:
StringOutput only. The name of the workload identity pool in which `issuer` will be recognized.
There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
$msg->identity_provider()/$msg->identity_provider($value)Type:
StringOutput only. An identity provider that reflects the `issuer` in the workload identity pool.
$msg->oidc_jwks()/$msg->oidc_jwks($value)Type:
BytesOptional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens will be validated using this field.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Gkehub::V1::Membership::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.