diff --git a/google/cloud/container/__init__.py b/google/cloud/container/__init__.py index a409cf10..61533223 100644 --- a/google/cloud/container/__init__.py +++ b/google/cloud/container/__init__.py @@ -57,6 +57,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -206,6 +207,7 @@ "DNSConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1/__init__.py b/google/cloud/container_v1/__init__.py index b31f65cd..9797ab28 100644 --- a/google/cloud/container_v1/__init__.py +++ b/google/cloud/container_v1/__init__.py @@ -52,6 +52,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -202,6 +203,7 @@ "DnsCacheConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GPUSharingConfig", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", diff --git a/google/cloud/container_v1/types/__init__.py b/google/cloud/container_v1/types/__init__.py index 7018b5f2..27f62df5 100644 --- a/google/cloud/container_v1/types/__init__.py +++ b/google/cloud/container_v1/types/__init__.py @@ -46,6 +46,7 @@ DNSConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -193,6 +194,7 @@ "DNSConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index e39418ef..1c231ebf 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -170,6 +170,7 @@ "LoggingVariantConfig", "MonitoringComponentConfig", "ManagedPrometheusConfig", + "Fleet", "LocalNvmeSsdBlockConfig", "EphemeralStorageLocalSsdConfig", }, @@ -2353,6 +2354,8 @@ class Cluster(proto.Message): on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. + fleet (google.cloud.container_v1.types.Fleet): + Fleet information for the cluster. """ class Status(proto.Enum): @@ -2679,6 +2682,11 @@ class Status(proto.Enum): proto.STRING, number=139, ) + fleet: "Fleet" = proto.Field( + proto.MESSAGE, + number=140, + message="Fleet", + ) class NodePoolAutoConfig(proto.Message): @@ -7250,8 +7258,9 @@ class Status(proto.Enum): UNUSED denotes that this range is unclaimed by any cluster. IN_USE_SERVICE (2): - IN_USE_SERVICE denotes that this range is claimed by a - cluster for services. It cannot be used for other clusters. + IN_USE_SERVICE denotes that this range is claimed by + cluster(s) for services. User-managed services range can be + shared between clusters within the same subnetwork. IN_USE_SHAREABLE_POD (3): IN_USE_SHAREABLE_POD denotes this range was created by the network admin and is currently claimed by a cluster for @@ -7939,6 +7948,38 @@ class ManagedPrometheusConfig(proto.Message): ) +class Fleet(proto.Message): + r"""Fleet is the fleet configuration for the cluster. + + Attributes: + project (str): + The Fleet host project(project ID or project + number) where this cluster will be registered + to. This field cannot be changed after the + cluster has been registered. + membership (str): + [Output only] The full resource name of the registered fleet + membership of the cluster, in the format + ``//gkehub.googleapis.com/projects/*/locations/*/memberships/*``. + pre_registered (bool): + [Output only] Whether the cluster has been registered + through the fleet API. + """ + + project: str = proto.Field( + proto.STRING, + number=1, + ) + membership: str = proto.Field( + proto.STRING, + number=2, + ) + pre_registered: bool = proto.Field( + proto.BOOL, + number=3, + ) + + class LocalNvmeSsdBlockConfig(proto.Message): r"""LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSD. diff --git a/google/cloud/container_v1beta1/__init__.py b/google/cloud/container_v1beta1/__init__.py index a941eafb..9f9b393d 100644 --- a/google/cloud/container_v1beta1/__init__.py +++ b/google/cloud/container_v1beta1/__init__.py @@ -54,6 +54,7 @@ EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -218,6 +219,7 @@ "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GPUSharingConfig", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", diff --git a/google/cloud/container_v1beta1/types/__init__.py b/google/cloud/container_v1beta1/types/__init__.py index 247e6211..e7cb4f31 100644 --- a/google/cloud/container_v1beta1/types/__init__.py +++ b/google/cloud/container_v1beta1/types/__init__.py @@ -48,6 +48,7 @@ EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, + Fleet, GatewayAPIConfig, GcePersistentDiskCsiDriverConfig, GcfsConfig, @@ -209,6 +210,7 @@ "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", + "Fleet", "GatewayAPIConfig", "GcePersistentDiskCsiDriverConfig", "GcfsConfig", diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index 828530ae..f5c6e4e3 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -187,6 +187,7 @@ "NodePoolLoggingConfig", "LoggingVariantConfig", "MonitoringComponentConfig", + "Fleet", }, ) @@ -2648,6 +2649,8 @@ class Cluster(proto.Message): on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. + fleet (google.cloud.container_v1beta1.types.Fleet): + Fleet information for the cluster. """ class Status(proto.Enum): @@ -3017,6 +3020,11 @@ class Status(proto.Enum): proto.STRING, number=139, ) + fleet: "Fleet" = proto.Field( + proto.MESSAGE, + number=140, + message="Fleet", + ) class WorkloadConfig(proto.Message): @@ -8775,4 +8783,36 @@ class Component(proto.Enum): ) +class Fleet(proto.Message): + r"""Fleet is the fleet configuration for the cluster. + + Attributes: + project (str): + The Fleet host project(project ID or project + number) where this cluster will be registered + to. This field cannot be changed after the + cluster has been registered. + membership (str): + [Output only] The full resource name of the registered fleet + membership of the cluster, in the format + ``//gkehub.googleapis.com/projects/*/locations/*/memberships/*``. + pre_registered (bool): + [Output only] Whether the cluster has been registered + through the fleet API. + """ + + project: str = proto.Field( + proto.STRING, + number=1, + ) + membership: str = proto.Field( + proto.STRING, + number=2, + ) + pre_registered: bool = proto.Field( + proto.BOOL, + number=3, + ) + + __all__ = tuple(sorted(__protobuf__.manifest))