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 52ac68d02611..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.11" # {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 52ac68d02611..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.11" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-run/google/cloud/run_v2/types/k8s_min.py b/packages/google-cloud-run/google/cloud/run_v2/types/k8s_min.py index 8eb7bb128a91..45f61f5a9de4 100644 --- a/packages/google-cloud-run/google/cloud/run_v2/types/k8s_min.py +++ b/packages/google-cloud-run/google/cloud/run_v2/types/k8s_min.py @@ -456,8 +456,7 @@ class SecretVolumeSource(proto.Message): - This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for - chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). - For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 + chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). - This might be in conflict with other options that affect @@ -509,8 +508,7 @@ class VersionToPath(proto.Message): - This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for - chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). - For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 + chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). - This might be in conflict with other options that affect diff --git a/packages/google-cloud-run/google/cloud/run_v2/types/revision_template.py b/packages/google-cloud-run/google/cloud/run_v2/types/revision_template.py index c2eda044f0df..fa8b478aca45 100644 --- a/packages/google-cloud-run/google/cloud/run_v2/types/revision_template.py +++ b/packages/google-cloud-run/google/cloud/run_v2/types/revision_template.py @@ -105,10 +105,17 @@ class RevisionTemplate(proto.Message): max_instance_request_concurrency (int): Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, - defaults to 80 when requested ``CPU >= 1`` and defaults to 1 - when requested ``CPU < 1``. + concurrency defaults to 80 when requested ``CPU >= 1`` and + defaults to 1 when requested ``CPU < 1``. service_mesh (google.cloud.run_v2.types.ServiceMesh): Optional. Enables service mesh connectivity. + encryption_key_revocation_action (google.cloud.run_v2.types.EncryptionKeyRevocationAction): + Optional. The action to take if the + encryption key is revoked. + encryption_key_shutdown_duration (google.protobuf.duration_pb2.Duration): + Optional. If encryption_key_revocation_action is SHUTDOWN, + the duration before shutting down all instances. The minimum + increment is 1 hour. session_affinity (bool): Optional. Enable session affinity. health_check_disabled (bool): @@ -180,6 +187,18 @@ class RevisionTemplate(proto.Message): number=16, message=vendor_settings.ServiceMesh, ) + encryption_key_revocation_action: vendor_settings.EncryptionKeyRevocationAction = ( + proto.Field( + proto.ENUM, + number=17, + enum=vendor_settings.EncryptionKeyRevocationAction, + ) + ) + encryption_key_shutdown_duration: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=18, + message=duration_pb2.Duration, + ) session_affinity: bool = proto.Field( proto.BOOL, number=19, 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 3f3816b43d06..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.11" + "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 f4e258259aa3..1bbd82b700e8 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 @@ -5851,6 +5851,8 @@ def test_create_service_rest_call_success(request_type): "encryption_key": "encryption_key_value", "max_instance_request_concurrency": 3436, "service_mesh": {"mesh": "mesh_value"}, + "encryption_key_revocation_action": 1, + "encryption_key_shutdown_duration": {}, "session_affinity": True, "health_check_disabled": True, "node_selector": {"accelerator": "accelerator_value"}, @@ -6470,6 +6472,8 @@ def test_update_service_rest_call_success(request_type): "encryption_key": "encryption_key_value", "max_instance_request_concurrency": 3436, "service_mesh": {"mesh": "mesh_value"}, + "encryption_key_revocation_action": 1, + "encryption_key_shutdown_duration": {}, "session_affinity": True, "health_check_disabled": True, "node_selector": {"accelerator": "accelerator_value"},