diff --git a/packages/google-cloud-run/google/cloud/run/gapic_version.py b/packages/google-cloud-run/google/cloud/run/gapic_version.py index dbb72468cf59..558c8aab67c5 100644 --- a/packages/google-cloud-run/google/cloud/run/gapic_version.py +++ b/packages/google-cloud-run/google/cloud/run/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.10.12" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-run/google/cloud/run_v2/gapic_version.py b/packages/google-cloud-run/google/cloud/run_v2/gapic_version.py index dbb72468cf59..558c8aab67c5 100644 --- a/packages/google-cloud-run/google/cloud/run_v2/gapic_version.py +++ b/packages/google-cloud-run/google/cloud/run_v2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.10.12" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-run/google/cloud/run_v2/types/vendor_settings.py b/packages/google-cloud-run/google/cloud/run_v2/types/vendor_settings.py index 6ac8d772f463..987c7d632aa7 100644 --- a/packages/google-cloud-run/google/cloud/run_v2/types/vendor_settings.py +++ b/packages/google-cloud-run/google/cloud/run_v2/types/vendor_settings.py @@ -279,6 +279,9 @@ class ServiceScaling(proto.Message): r"""Scaling settings applied at the service level rather than at the revision level. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: min_instance_count (int): Optional. total min instances for the @@ -287,6 +290,14 @@ class ServiceScaling(proto.Message): on the percent of traffic they are receiving. scaling_mode (google.cloud.run_v2.types.ServiceScaling.ScalingMode): Optional. The scaling mode for the service. + manual_instance_count (int): + Optional. total instance count for the + service in manual scaling mode. This number of + instances is divided among all revisions with + specified traffic based on the percent of + traffic they are receiving. + + This field is a member of `oneof`_ ``_manual_instance_count``. """ class ScalingMode(proto.Enum): @@ -316,6 +327,11 @@ class ScalingMode(proto.Enum): number=3, enum=ScalingMode, ) + manual_instance_count: int = proto.Field( + proto.INT32, + number=6, + optional=True, + ) class NodeSelector(proto.Message): diff --git a/packages/google-cloud-run/samples/generated_samples/snippet_metadata_google.cloud.run.v2.json b/packages/google-cloud-run/samples/generated_samples/snippet_metadata_google.cloud.run.v2.json index d26a6e949076..84a8ca294789 100644 --- a/packages/google-cloud-run/samples/generated_samples/snippet_metadata_google.cloud.run.v2.json +++ b/packages/google-cloud-run/samples/generated_samples/snippet_metadata_google.cloud.run.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-run", - "version": "0.10.12" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-run/tests/unit/gapic/run_v2/test_services.py b/packages/google-cloud-run/tests/unit/gapic/run_v2/test_services.py index 1bbd82b700e8..7308504b2943 100644 --- a/packages/google-cloud-run/tests/unit/gapic/run_v2/test_services.py +++ b/packages/google-cloud-run/tests/unit/gapic/run_v2/test_services.py @@ -5865,7 +5865,11 @@ def test_create_service_rest_call_success(request_type): "tag": "tag_value", } ], - "scaling": {"min_instance_count": 1920, "scaling_mode": 1}, + "scaling": { + "min_instance_count": 1920, + "scaling_mode": 1, + "manual_instance_count": 2234, + }, "invoker_iam_disabled": True, "default_uri_disabled": True, "urls": ["urls_value1", "urls_value2"], @@ -6486,7 +6490,11 @@ def test_update_service_rest_call_success(request_type): "tag": "tag_value", } ], - "scaling": {"min_instance_count": 1920, "scaling_mode": 1}, + "scaling": { + "min_instance_count": 1920, + "scaling_mode": 1, + "manual_instance_count": 2234, + }, "invoker_iam_disabled": True, "default_uri_disabled": True, "urls": ["urls_value1", "urls_value2"],