3030 "ResourceManifest" ,
3131 "GkeCluster" ,
3232 "KubernetesMetadata" ,
33+ "MonitoringConfig" ,
3334 "MembershipState" ,
3435 "Authority" ,
3536 },
@@ -65,7 +66,7 @@ class Membership(proto.Message):
6566 ``[a-z0-9]([-a-z0-9]*[a-z0-9])?``, with a maximum length of
6667 63 characters.
6768 labels (MutableMapping[str, str]):
68- Optional. GCP labels for this membership.
69+ Optional. Labels for this membership.
6970 description (str):
7071 Output only. Description of this membership, limited to 63
7172 characters. Must match the regex:
@@ -111,6 +112,9 @@ class Membership(proto.Message):
111112 Membership. See the documentation on Workload
112113 Identity for more details:
113114 https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
115+ monitoring_config (google.cloud.gkehub_v1.types.MonitoringConfig):
116+ Optional. The monitoring config information
117+ for this membership.
114118 """
115119
116120 endpoint : "MembershipEndpoint" = proto .Field (
@@ -170,6 +174,11 @@ class Membership(proto.Message):
170174 number = 12 ,
171175 message = "Authority" ,
172176 )
177+ monitoring_config : "MonitoringConfig" = proto .Field (
178+ proto .MESSAGE ,
179+ number = 14 ,
180+ message = "MonitoringConfig" ,
181+ )
173182
174183
175184class MembershipEndpoint (proto .Message ):
@@ -194,6 +203,10 @@ class MembershipEndpoint(proto.Message):
194203 Membership Authority field.
195204 - Ensure proper initial configuration of default Hub
196205 Features.
206+ google_managed (bool):
207+ Output only. Whether the lifecycle of this
208+ membership is managed by a google cluster
209+ platform service.
197210 """
198211
199212 gke_cluster : "GkeCluster" = proto .Field (
@@ -211,6 +224,10 @@ class MembershipEndpoint(proto.Message):
211224 number = 3 ,
212225 message = "KubernetesResource" ,
213226 )
227+ google_managed : bool = proto .Field (
228+ proto .BOOL ,
229+ number = 8 ,
230+ )
214231
215232
216233class KubernetesResource (proto .Message ):
@@ -346,16 +363,24 @@ class GkeCluster(proto.Message):
346363
347364 Attributes:
348365 resource_link (str):
349- Immutable. Self-link of the GCP resource for
350- the GKE cluster. For example:
366+ Immutable. Self-link of the Google Cloud
367+ resource for the GKE cluster. For example:
368+
351369 //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
352370 Zonal clusters are also supported.
371+ cluster_missing (bool):
372+ Output only. If cluster_missing is set then it denotes that
373+ the GKE cluster no longer exists in the GKE Control Plane.
353374 """
354375
355376 resource_link : str = proto .Field (
356377 proto .STRING ,
357378 number = 1 ,
358379 )
380+ cluster_missing : bool = proto .Field (
381+ proto .BOOL ,
382+ number = 2 ,
383+ )
359384
360385
361386class KubernetesMetadata (proto .Message ):
@@ -416,6 +441,60 @@ class KubernetesMetadata(proto.Message):
416441 )
417442
418443
444+ class MonitoringConfig (proto .Message ):
445+ r"""This field informs Fleet-based applications/services/UIs with
446+ the necessary information for where each underlying Cluster
447+ reports its metrics.
448+
449+ Attributes:
450+ project_id (str):
451+ Immutable. Project used to report Metrics
452+ location (str):
453+ Immutable. Location used to report Metrics
454+ cluster (str):
455+ Immutable. Cluster name used to report metrics. For Anthos
456+ on VMWare/Baremetal, it would be in format
457+ ``memberClusters/cluster_name``; And for Anthos on
458+ MultiCloud, it would be in format
459+ ``{azureClusters, awsClusters}/cluster_name``.
460+ kubernetes_metrics_prefix (str):
461+ Kubernetes system metrics, if available, are
462+ written to this prefix. This defaults to
463+ kubernetes.io for GKE, and kubernetes.io/anthos
464+ for Anthos eventually. Noted: Anthos MultiCloud
465+ will have kubernetes.io prefix today but will
466+ migration to be under kubernetes.io/anthos
467+ cluster_hash (str):
468+ Immutable. Cluster hash, this is a unique
469+ string generated by google code, which does not
470+ contain any PII, which we can use to reference
471+ the cluster. This is expected to be created by
472+ the monitoring stack and persisted into the
473+ Cluster object as well as to GKE-Hub.
474+ """
475+
476+ project_id : str = proto .Field (
477+ proto .STRING ,
478+ number = 1 ,
479+ )
480+ location : str = proto .Field (
481+ proto .STRING ,
482+ number = 2 ,
483+ )
484+ cluster : str = proto .Field (
485+ proto .STRING ,
486+ number = 3 ,
487+ )
488+ kubernetes_metrics_prefix : str = proto .Field (
489+ proto .STRING ,
490+ number = 4 ,
491+ )
492+ cluster_hash : str = proto .Field (
493+ proto .STRING ,
494+ number = 5 ,
495+ )
496+
497+
419498class MembershipState (proto .Message ):
420499 r"""MembershipState describes the state of a Membership resource.
421500
0 commit comments