Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions google/cloud/container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
DNSConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
GatewayAPIConfig,
GcePersistentDiskCsiDriverConfig,
GcfsConfig,
Expand Down Expand Up @@ -206,6 +207,7 @@
"DNSConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
"GatewayAPIConfig",
"GcePersistentDiskCsiDriverConfig",
"GcfsConfig",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/container_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
DNSConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
GatewayAPIConfig,
GcePersistentDiskCsiDriverConfig,
GcfsConfig,
Expand Down Expand Up @@ -202,6 +203,7 @@
"DnsCacheConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
"GPUSharingConfig",
"GatewayAPIConfig",
"GcePersistentDiskCsiDriverConfig",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/container_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
DNSConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
GatewayAPIConfig,
GcePersistentDiskCsiDriverConfig,
GcfsConfig,
Expand Down Expand Up @@ -193,6 +194,7 @@
"DNSConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
"GatewayAPIConfig",
"GcePersistentDiskCsiDriverConfig",
"GcfsConfig",
Expand Down
45 changes: 43 additions & 2 deletions google/cloud/container_v1/types/cluster_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"LoggingVariantConfig",
"MonitoringComponentConfig",
"ManagedPrometheusConfig",
"Fleet",
"LocalNvmeSsdBlockConfig",
"EphemeralStorageLocalSsdConfig",
},
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/container_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
EphemeralStorageConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
GatewayAPIConfig,
GcePersistentDiskCsiDriverConfig,
GcfsConfig,
Expand Down Expand Up @@ -218,6 +219,7 @@
"EphemeralStorageConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
"GPUSharingConfig",
"GatewayAPIConfig",
"GcePersistentDiskCsiDriverConfig",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/container_v1beta1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
EphemeralStorageConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
GatewayAPIConfig,
GcePersistentDiskCsiDriverConfig,
GcfsConfig,
Expand Down Expand Up @@ -209,6 +210,7 @@
"EphemeralStorageConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
"GatewayAPIConfig",
"GcePersistentDiskCsiDriverConfig",
"GcfsConfig",
Expand Down
40 changes: 40 additions & 0 deletions google/cloud/container_v1beta1/types/cluster_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"NodePoolLoggingConfig",
"LoggingVariantConfig",
"MonitoringComponentConfig",
"Fleet",
},
)

Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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))