Skip to content

Commit 08882cf

Browse files
Google APIscopybara-github
authored andcommitted
feat: add AcceleratorConfig to ListAcceleratorTypesResponse
PiperOrigin-RevId: 514873293
1 parent e28c77c commit 08882cf

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

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.

0 commit comments

Comments
 (0)