Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: Add Secure Boot support to TPU v2alpha1 API (#190)
Browse files Browse the repository at this point in the history
* feat: Add Secure Boot support to TPU v2alpha1 API

PiperOrigin-RevId: 474644226

Source-Link: googleapis/googleapis@f90b329

Source-Link: googleapis/googleapis-gen@4ad8763
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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Sep 16, 2022
1 parent 7746039 commit 955e3db
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/cloud/tpu_v2alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
SchedulingConfig,
ServiceAccount,
ServiceIdentity,
ShieldedInstanceConfig,
StartNodeRequest,
StopNodeRequest,
Symptom,
Expand Down Expand Up @@ -82,6 +83,7 @@
"SchedulingConfig",
"ServiceAccount",
"ServiceIdentity",
"ShieldedInstanceConfig",
"StartNodeRequest",
"StopNodeRequest",
"Symptom",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/tpu_v2alpha1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
SchedulingConfig,
ServiceAccount,
ServiceIdentity,
ShieldedInstanceConfig,
StartNodeRequest,
StopNodeRequest,
Symptom,
Expand Down Expand Up @@ -79,6 +80,7 @@
"SchedulingConfig",
"ServiceAccount",
"ServiceIdentity",
"ShieldedInstanceConfig",
"StartNodeRequest",
"StopNodeRequest",
"Symptom",
Expand Down
23 changes: 23 additions & 0 deletions google/cloud/tpu_v2alpha1/types/cloud_tpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"Symptom",
"GetGuestAttributesRequest",
"GetGuestAttributesResponse",
"ShieldedInstanceConfig",
},
)

Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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))

0 comments on commit 955e3db

Please sign in to comment.