Skip to content

Commit 579e338

Browse files
docs: [google-cloud-run]fixed formatting of some documentation (#13272)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add EncryptionKeyRevocationAction and shutdown duration configuration to Services docs: fixed formatting of some documentation END_COMMIT_OVERRIDE PiperOrigin-RevId: 695811695 Source-Link: googleapis/googleapis@b800515 Source-Link: googleapis/googleapis-gen@eeb7f0e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJ1bi8uT3dsQm90LnlhbWwiLCJoIjoiZWViN2YwZTk5ZWI1OTZiN2JhN2YzN2VkMDg4ZjIzOGZmZWQyMWY1NyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3c1e8b8 commit 579e338

File tree

6 files changed

+30
-9
lines changed

6 files changed

+30
-9
lines changed

packages/google-cloud-run/google/cloud/run/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.10.11" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-run/google/cloud/run_v2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.10.11" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-run/google/cloud/run_v2/types/k8s_min.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ class SecretVolumeSource(proto.Message):
456456
- This is an integer representation of the mode bits. So,
457457
the octal integer value should look exactly as the chmod
458458
numeric notation with a leading zero. Some examples: for
459-
chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).
460-
For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
459+
chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
461460
(base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755
462461
(octal) or 493 (base-10).
463462
- This might be in conflict with other options that affect
@@ -509,8 +508,7 @@ class VersionToPath(proto.Message):
509508
- This is an integer representation of the mode bits. So,
510509
the octal integer value should look exactly as the chmod
511510
numeric notation with a leading zero. Some examples: for
512-
chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).
513-
For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
511+
chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
514512
(base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755
515513
(octal) or 493 (base-10).
516514
- This might be in conflict with other options that affect

packages/google-cloud-run/google/cloud/run_v2/types/revision_template.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@ class RevisionTemplate(proto.Message):
105105
max_instance_request_concurrency (int):
106106
Optional. Sets the maximum number of requests that each
107107
serving instance can receive. If not specified or 0,
108-
defaults to 80 when requested ``CPU >= 1`` and defaults to 1
109-
when requested ``CPU < 1``.
108+
concurrency defaults to 80 when requested ``CPU >= 1`` and
109+
defaults to 1 when requested ``CPU < 1``.
110110
service_mesh (google.cloud.run_v2.types.ServiceMesh):
111111
Optional. Enables service mesh connectivity.
112+
encryption_key_revocation_action (google.cloud.run_v2.types.EncryptionKeyRevocationAction):
113+
Optional. The action to take if the
114+
encryption key is revoked.
115+
encryption_key_shutdown_duration (google.protobuf.duration_pb2.Duration):
116+
Optional. If encryption_key_revocation_action is SHUTDOWN,
117+
the duration before shutting down all instances. The minimum
118+
increment is 1 hour.
112119
session_affinity (bool):
113120
Optional. Enable session affinity.
114121
health_check_disabled (bool):
@@ -180,6 +187,18 @@ class RevisionTemplate(proto.Message):
180187
number=16,
181188
message=vendor_settings.ServiceMesh,
182189
)
190+
encryption_key_revocation_action: vendor_settings.EncryptionKeyRevocationAction = (
191+
proto.Field(
192+
proto.ENUM,
193+
number=17,
194+
enum=vendor_settings.EncryptionKeyRevocationAction,
195+
)
196+
)
197+
encryption_key_shutdown_duration: duration_pb2.Duration = proto.Field(
198+
proto.MESSAGE,
199+
number=18,
200+
message=duration_pb2.Duration,
201+
)
183202
session_affinity: bool = proto.Field(
184203
proto.BOOL,
185204
number=19,

packages/google-cloud-run/samples/generated_samples/snippet_metadata_google.cloud.run.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-run",
11-
"version": "0.10.11"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-run/tests/unit/gapic/run_v2/test_services.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5851,6 +5851,8 @@ def test_create_service_rest_call_success(request_type):
58515851
"encryption_key": "encryption_key_value",
58525852
"max_instance_request_concurrency": 3436,
58535853
"service_mesh": {"mesh": "mesh_value"},
5854+
"encryption_key_revocation_action": 1,
5855+
"encryption_key_shutdown_duration": {},
58545856
"session_affinity": True,
58555857
"health_check_disabled": True,
58565858
"node_selector": {"accelerator": "accelerator_value"},
@@ -6470,6 +6472,8 @@ def test_update_service_rest_call_success(request_type):
64706472
"encryption_key": "encryption_key_value",
64716473
"max_instance_request_concurrency": 3436,
64726474
"service_mesh": {"mesh": "mesh_value"},
6475+
"encryption_key_revocation_action": 1,
6476+
"encryption_key_shutdown_duration": {},
64736477
"session_affinity": True,
64746478
"health_check_disabled": True,
64756479
"node_selector": {"accelerator": "accelerator_value"},

0 commit comments

Comments
 (0)