diff --git a/google/cloud/container/__init__.py b/google/cloud/container/__init__.py index eca392d8..10d63a13 100644 --- a/google/cloud/container/__init__.py +++ b/google/cloud/container/__init__.py @@ -26,6 +26,7 @@ ) from google.cloud.container_v1.types.cluster_service import ( AcceleratorConfig, + AdditionalPodRangesConfig, AddonsConfig, AdvancedMachineFeatures, AuthenticatorGroupsConfig, @@ -178,6 +179,7 @@ "ClusterManagerClient", "ClusterManagerAsyncClient", "AcceleratorConfig", + "AdditionalPodRangesConfig", "AddonsConfig", "AdvancedMachineFeatures", "AuthenticatorGroupsConfig", diff --git a/google/cloud/container_v1/__init__.py b/google/cloud/container_v1/__init__.py index e22b409f..86c11d3e 100644 --- a/google/cloud/container_v1/__init__.py +++ b/google/cloud/container_v1/__init__.py @@ -21,6 +21,7 @@ from .services.cluster_manager import ClusterManagerAsyncClient, ClusterManagerClient from .types.cluster_service import ( AcceleratorConfig, + AdditionalPodRangesConfig, AddonsConfig, AdvancedMachineFeatures, AuthenticatorGroupsConfig, @@ -172,6 +173,7 @@ __all__ = ( "ClusterManagerAsyncClient", "AcceleratorConfig", + "AdditionalPodRangesConfig", "AddonsConfig", "AdvancedMachineFeatures", "AuthenticatorGroupsConfig", diff --git a/google/cloud/container_v1/types/__init__.py b/google/cloud/container_v1/types/__init__.py index 01e4f29f..913d39ab 100644 --- a/google/cloud/container_v1/types/__init__.py +++ b/google/cloud/container_v1/types/__init__.py @@ -15,6 +15,7 @@ # from .cluster_service import ( AcceleratorConfig, + AdditionalPodRangesConfig, AddonsConfig, AdvancedMachineFeatures, AuthenticatorGroupsConfig, @@ -165,6 +166,7 @@ __all__ = ( "AcceleratorConfig", + "AdditionalPodRangesConfig", "AddonsConfig", "AdvancedMachineFeatures", "AuthenticatorGroupsConfig", diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index d92b7b40..4b87e5d0 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -75,6 +75,7 @@ "NodePoolDefaults", "NodeConfigDefaults", "ClusterUpdate", + "AdditionalPodRangesConfig", "Operation", "OperationProgress", "CreateClusterRequest", @@ -2026,6 +2027,11 @@ class IPAllocationPolicy(proto.Message): services_ipv6_cidr_block (str): Output only. [Output only] The services IPv6 CIDR block for the cluster. + additional_pod_ranges_config (google.cloud.container_v1.types.AdditionalPodRangesConfig): + Output only. [Output only] The additional pod ranges that + are added to the cluster. These pod ranges can be used by + new node pools to allocate pod IPs automatically. Once the + range is removed it will not show up in IPAllocationPolicy. """ use_ip_aliases: bool = proto.Field( @@ -2103,6 +2109,11 @@ class IPAllocationPolicy(proto.Message): proto.STRING, number=23, ) + additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=24, + message="AdditionalPodRangesConfig", + ) class Cluster(proto.Message): @@ -2987,6 +2998,15 @@ class ClusterUpdate(proto.Message): the current stack type of the cluster, update will attempt to change the stack type to the new type. + additional_pod_ranges_config (google.cloud.container_v1.types.AdditionalPodRangesConfig): + The additional pod ranges to be added to the + cluster. These pod ranges can be used by node + pools to allocate pod IPs. + removed_additional_pod_ranges_config (google.cloud.container_v1.types.AdditionalPodRangesConfig): + The additional pod ranges that are to be removed from the + cluster. The pod ranges specified here must have been + specified earlier in the 'additional_pod_ranges_config' + argument. """ desired_node_version: str = proto.Field( @@ -3183,6 +3203,23 @@ class ClusterUpdate(proto.Message): number=119, enum="StackType", ) + additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=120, + message="AdditionalPodRangesConfig", + ) + removed_additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=121, + message="AdditionalPodRangesConfig", + ) + + +class AdditionalPodRangesConfig(proto.Message): + r"""AdditionalPodRangesConfig is the configuration for additional + pod secondary ranges supporting the ClusterUpdate message. + + """ class Operation(proto.Message): diff --git a/google/cloud/container_v1beta1/__init__.py b/google/cloud/container_v1beta1/__init__.py index ad1c8db5..05d6baf5 100644 --- a/google/cloud/container_v1beta1/__init__.py +++ b/google/cloud/container_v1beta1/__init__.py @@ -21,6 +21,7 @@ from .services.cluster_manager import ClusterManagerAsyncClient, ClusterManagerClient from .types.cluster_service import ( AcceleratorConfig, + AdditionalPodRangesConfig, AddonsConfig, AdvancedMachineFeatures, AuthenticatorGroupsConfig, @@ -186,6 +187,7 @@ __all__ = ( "ClusterManagerAsyncClient", "AcceleratorConfig", + "AdditionalPodRangesConfig", "AddonsConfig", "AdvancedMachineFeatures", "AuthenticatorGroupsConfig", diff --git a/google/cloud/container_v1beta1/types/__init__.py b/google/cloud/container_v1beta1/types/__init__.py index a9a8d106..ccd60805 100644 --- a/google/cloud/container_v1beta1/types/__init__.py +++ b/google/cloud/container_v1beta1/types/__init__.py @@ -15,6 +15,7 @@ # from .cluster_service import ( AcceleratorConfig, + AdditionalPodRangesConfig, AddonsConfig, AdvancedMachineFeatures, AuthenticatorGroupsConfig, @@ -179,6 +180,7 @@ __all__ = ( "AcceleratorConfig", + "AdditionalPodRangesConfig", "AddonsConfig", "AdvancedMachineFeatures", "AuthenticatorGroupsConfig", diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index 7b4eaf96..6247aea2 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -84,6 +84,7 @@ "NodeConfigDefaults", "NodePoolAutoConfig", "ClusterUpdate", + "AdditionalPodRangesConfig", "Operation", "OperationProgress", "CreateClusterRequest", @@ -2131,6 +2132,11 @@ class IPAllocationPolicy(proto.Message): services_ipv6_cidr_block (str): Output only. [Output only] The services IPv6 CIDR block for the cluster. + additional_pod_ranges_config (google.cloud.container_v1beta1.types.AdditionalPodRangesConfig): + Output only. [Output only] The additional pod ranges that + are added to the cluster. These pod ranges can be used by + new node pools to allocate pod IPs automatically. Once the + range is removed it will not show up in IPAllocationPolicy. """ class StackType(proto.Enum): @@ -2246,6 +2252,11 @@ class IPv6AccessType(proto.Enum): proto.STRING, number=23, ) + additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=24, + message="AdditionalPodRangesConfig", + ) class BinaryAuthorization(proto.Message): @@ -3451,6 +3462,15 @@ class ClusterUpdate(proto.Message): the current stack type of the cluster, update will attempt to change the stack type to the new type. + additional_pod_ranges_config (google.cloud.container_v1beta1.types.AdditionalPodRangesConfig): + The additional pod ranges to be added to the + cluster. These pod ranges can be used by node + pools to allocate pod IPs. + removed_additional_pod_ranges_config (google.cloud.container_v1beta1.types.AdditionalPodRangesConfig): + The additional pod ranges that are to be removed from the + cluster. The pod ranges specified here must have been + specified earlier in the 'additional_pod_ranges_config' + argument. """ desired_node_version: str = proto.Field( @@ -3683,6 +3703,23 @@ class ClusterUpdate(proto.Message): number=119, enum="StackType", ) + additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=120, + message="AdditionalPodRangesConfig", + ) + removed_additional_pod_ranges_config: "AdditionalPodRangesConfig" = proto.Field( + proto.MESSAGE, + number=121, + message="AdditionalPodRangesConfig", + ) + + +class AdditionalPodRangesConfig(proto.Message): + r"""AdditionalPodRangesConfig is the configuration for additional + pod secondary ranges supporting the ClusterUpdate message. + + """ class Operation(proto.Message): diff --git a/samples/generated_samples/snippet_metadata_google.container.v1.json b/samples/generated_samples/snippet_metadata_google.container.v1.json index ecd94663..34c1cf39 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.19.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json index 13e22be3..15a96218 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.19.0" + "version": "0.1.0" }, "snippets": [ {