Skip to content

Commit 27f2e1e

Browse files
feat: [tpu] add AcceleratorConfig to ListAcceleratorTypesResponse (#4059)
* docs: minor comment update PiperOrigin-RevId: 514872703 Source-Link: googleapis/googleapis@4c7bd62 Source-Link: googleapis/googleapis-gen@b37df6f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiYjM3ZGY2ZjBmNTJjNzZiNzZhOWRjMjAxNjVjNDA0NDRiNzM2ZTNlNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add AcceleratorConfig to ListAcceleratorTypesResponse PiperOrigin-RevId: 514873293 Source-Link: googleapis/googleapis@08882cf Source-Link: googleapis/googleapis-gen@06dc5c5 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiMDZkYzVjNWNmNTQyNDJhMWM4ZWQxMzg2NjgzZTI5MjM0Yjc2NGMyYSJ9 * 🦉 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 3370cf1 commit 27f2e1e

8 files changed

Lines changed: 544 additions & 4 deletions

File tree

packages/google-cloud-tpu/protos/google/cloud/tpu/v2/cloud_tpu.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ message Node {
460460

461461
// Shielded Instance options.
462462
ShieldedInstanceConfig shielded_instance_config = 45;
463+
464+
// The AccleratorConfig for the TPU Node.
465+
AcceleratorConfig accelerator_config = 46;
463466
}
464467

465468
// Request for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
@@ -591,6 +594,9 @@ message AcceleratorType {
591594

592595
// the accelerator type.
593596
string type = 2;
597+
598+
// The accelerator config.
599+
repeated AcceleratorConfig accelerator_configs = 3;
594600
}
595601

596602
// Request for [GetAcceleratorType][google.cloud.tpu.v2.Tpu.GetAcceleratorType].
@@ -792,6 +798,30 @@ message GetGuestAttributesResponse {
792798
repeated GuestAttributes guest_attributes = 1;
793799
}
794800

801+
// A TPU accelerator configuration.
802+
message AcceleratorConfig {
803+
// TPU type.
804+
enum Type {
805+
// Unspecified version.
806+
TYPE_UNSPECIFIED = 0;
807+
808+
// TPU v2.
809+
V2 = 2;
810+
811+
// TPU v3.
812+
V3 = 4;
813+
814+
// TPU v4.
815+
V4 = 7;
816+
}
817+
818+
// Required. Type of TPU.
819+
Type type = 1 [(google.api.field_behavior) = REQUIRED];
820+
821+
// Required. Topology of TPU in chips.
822+
string topology = 2 [(google.api.field_behavior) = REQUIRED];
823+
}
824+
795825
// A set of Shielded Instance options.
796826
message ShieldedInstanceConfig {
797827
// Defines whether the instance has Secure Boot enabled.

packages/google-cloud-tpu/protos/google/cloud/tpu/v2alpha1/cloud_tpu.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ message QueuedResource {
627627
// The queueing policy of the QueuedRequest.
628628
QueueingPolicy queueing_policy = 5;
629629

630-
// Output only. State of the QueuedResource request
630+
// Output only. State of the QueuedResource request.
631631
QueuedResourceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
632632
}
633633

packages/google-cloud-tpu/protos/protos.d.ts

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)