From 955e3dbc7bfcaa32027a4e467b05c2579f217483 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 10:14:03 -0400 Subject: [PATCH] feat: Add Secure Boot support to TPU v2alpha1 API (#190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add Secure Boot support to TPU v2alpha1 API PiperOrigin-RevId: 474644226 Source-Link: https://github.com/googleapis/googleapis/commit/f90b329a7eb583a21a20796892b993e91e8ccf34 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ad8763bde676f92a3eb70753ae1cfed0e81387e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFkODc2M2JkZTY3NmY5MmEzZWI3MDc1M2FlMWNmZWQwZTgxMzg3ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google/cloud/tpu_v2alpha1/__init__.py | 2 ++ google/cloud/tpu_v2alpha1/types/__init__.py | 2 ++ google/cloud/tpu_v2alpha1/types/cloud_tpu.py | 23 ++++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/google/cloud/tpu_v2alpha1/__init__.py b/google/cloud/tpu_v2alpha1/__init__.py index dd533d5..5ebcf45 100644 --- a/google/cloud/tpu_v2alpha1/__init__.py +++ b/google/cloud/tpu_v2alpha1/__init__.py @@ -45,6 +45,7 @@ SchedulingConfig, ServiceAccount, ServiceIdentity, + ShieldedInstanceConfig, StartNodeRequest, StopNodeRequest, Symptom, @@ -82,6 +83,7 @@ "SchedulingConfig", "ServiceAccount", "ServiceIdentity", + "ShieldedInstanceConfig", "StartNodeRequest", "StopNodeRequest", "Symptom", diff --git a/google/cloud/tpu_v2alpha1/types/__init__.py b/google/cloud/tpu_v2alpha1/types/__init__.py index 3cacb25..da17d91 100644 --- a/google/cloud/tpu_v2alpha1/types/__init__.py +++ b/google/cloud/tpu_v2alpha1/types/__init__.py @@ -43,6 +43,7 @@ SchedulingConfig, ServiceAccount, ServiceIdentity, + ShieldedInstanceConfig, StartNodeRequest, StopNodeRequest, Symptom, @@ -79,6 +80,7 @@ "SchedulingConfig", "ServiceAccount", "ServiceIdentity", + "ShieldedInstanceConfig", "StartNodeRequest", "StopNodeRequest", "Symptom", diff --git a/google/cloud/tpu_v2alpha1/types/cloud_tpu.py b/google/cloud/tpu_v2alpha1/types/cloud_tpu.py index ad544d2..e85e733 100644 --- a/google/cloud/tpu_v2alpha1/types/cloud_tpu.py +++ b/google/cloud/tpu_v2alpha1/types/cloud_tpu.py @@ -53,6 +53,7 @@ "Symptom", "GetGuestAttributesRequest", "GetGuestAttributesResponse", + "ShieldedInstanceConfig", }, ) @@ -350,6 +351,8 @@ class Node(proto.Message): symptoms (Sequence[google.cloud.tpu_v2alpha1.types.Symptom]): Output only. The Symptoms that have occurred to the TPU Node. + shielded_instance_config (google.cloud.tpu_v2alpha1.types.ShieldedInstanceConfig): + Shielded Instance options. """ class State(proto.Enum): @@ -481,6 +484,11 @@ class ApiVersion(proto.Enum): number=39, message="Symptom", ) + shielded_instance_config = proto.Field( + proto.MESSAGE, + number=45, + message="ShieldedInstanceConfig", + ) class ListNodesRequest(proto.Message): @@ -1055,4 +1063,19 @@ class GetGuestAttributesResponse(proto.Message): ) +class ShieldedInstanceConfig(proto.Message): + r"""A set of Shielded Instance options. + + Attributes: + enable_secure_boot (bool): + Defines whether the instance has Secure Boot + enabled. + """ + + enable_secure_boot = proto.Field( + proto.BOOL, + number=1, + ) + + __all__ = tuple(sorted(__protobuf__.manifest))