Skip to content

Commit

Permalink
docs: [google-cloud-run]fixed formatting of some documentation (#13272)
Browse files Browse the repository at this point in the history
- [ ] 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 13, 2024
1 parent 3c1e8b8 commit 579e338
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-run",
"version": "0.10.11"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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"},
Expand Down

0 comments on commit 579e338

Please sign in to comment.