Skip to content

Commit 656d537

Browse files
feat: Add Secure Boot support to TPU v2alpha1 API (#190)
* 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>
1 parent 29c5738 commit 656d537

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
SchedulingConfig,
4646
ServiceAccount,
4747
ServiceIdentity,
48+
ShieldedInstanceConfig,
4849
StartNodeRequest,
4950
StopNodeRequest,
5051
Symptom,
@@ -82,6 +83,7 @@
8283
"SchedulingConfig",
8384
"ServiceAccount",
8485
"ServiceIdentity",
86+
"ShieldedInstanceConfig",
8587
"StartNodeRequest",
8688
"StopNodeRequest",
8789
"Symptom",

packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
SchedulingConfig,
4444
ServiceAccount,
4545
ServiceIdentity,
46+
ShieldedInstanceConfig,
4647
StartNodeRequest,
4748
StopNodeRequest,
4849
Symptom,
@@ -79,6 +80,7 @@
7980
"SchedulingConfig",
8081
"ServiceAccount",
8182
"ServiceIdentity",
83+
"ShieldedInstanceConfig",
8284
"StartNodeRequest",
8385
"StopNodeRequest",
8486
"Symptom",

packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/types/cloud_tpu.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"Symptom",
5454
"GetGuestAttributesRequest",
5555
"GetGuestAttributesResponse",
56+
"ShieldedInstanceConfig",
5657
},
5758
)
5859

@@ -350,6 +351,8 @@ class Node(proto.Message):
350351
symptoms (Sequence[google.cloud.tpu_v2alpha1.types.Symptom]):
351352
Output only. The Symptoms that have occurred
352353
to the TPU Node.
354+
shielded_instance_config (google.cloud.tpu_v2alpha1.types.ShieldedInstanceConfig):
355+
Shielded Instance options.
353356
"""
354357

355358
class State(proto.Enum):
@@ -481,6 +484,11 @@ class ApiVersion(proto.Enum):
481484
number=39,
482485
message="Symptom",
483486
)
487+
shielded_instance_config = proto.Field(
488+
proto.MESSAGE,
489+
number=45,
490+
message="ShieldedInstanceConfig",
491+
)
484492

485493

486494
class ListNodesRequest(proto.Message):
@@ -1055,4 +1063,19 @@ class GetGuestAttributesResponse(proto.Message):
10551063
)
10561064

10571065

1066+
class ShieldedInstanceConfig(proto.Message):
1067+
r"""A set of Shielded Instance options.
1068+
1069+
Attributes:
1070+
enable_secure_boot (bool):
1071+
Defines whether the instance has Secure Boot
1072+
enabled.
1073+
"""
1074+
1075+
enable_secure_boot = proto.Field(
1076+
proto.BOOL,
1077+
number=1,
1078+
)
1079+
1080+
10581081
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)