Skip to content

Commit cd53720

Browse files
Google APIscopybara-github
authored andcommitted
chore: adding imports for types in LRO annotations
PiperOrigin-RevId: 508454659
1 parent e3abc06 commit cd53720

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

google/cloud/tpu/v2alpha1/cloud_tpu.proto

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/longrunning/operations.proto";
2424
import "google/protobuf/duration.proto";
25+
import "google/protobuf/empty.proto";
2526
import "google/protobuf/field_mask.proto";
2627
import "google/protobuf/timestamp.proto";
2728
import "google/rpc/status.proto";
@@ -519,6 +520,9 @@ message Node {
519520
// Node.
520521
string queued_resource = 43 [(google.api.field_behavior) = OUTPUT_ONLY];
521522

523+
// The AccleratorConfig for the TPU Node.
524+
AcceleratorConfig accelerator_config = 44;
525+
522526
// Shielded Instance options.
523527
ShieldedInstanceConfig shielded_instance_config = 45;
524528
}
@@ -943,6 +947,9 @@ message AcceleratorType {
943947

944948
// The accelerator type.
945949
string type = 2;
950+
951+
// The accelerator config.
952+
repeated AcceleratorConfig accelerator_configs = 3;
946953
}
947954

948955
// Request for
@@ -1163,6 +1170,30 @@ message SimulateMaintenanceEventRequest {
11631170
repeated string worker_ids = 2;
11641171
}
11651172

1173+
// A TPU accelerator configuration.
1174+
message AcceleratorConfig {
1175+
// TPU type.
1176+
enum Type {
1177+
// Unspecified version.
1178+
TYPE_UNSPECIFIED = 0;
1179+
1180+
// TPU v2.
1181+
V2 = 2;
1182+
1183+
// TPU v3.
1184+
V3 = 4;
1185+
1186+
// TPU v4.
1187+
V4 = 7;
1188+
}
1189+
1190+
// Required. Type of TPU.
1191+
Type type = 1 [(google.api.field_behavior) = REQUIRED];
1192+
1193+
// Required. Topology of TPU in chips.
1194+
string topology = 2 [(google.api.field_behavior) = REQUIRED];
1195+
}
1196+
11661197
// A set of Shielded Instance options.
11671198
message ShieldedInstanceConfig {
11681199
// Defines whether the instance has Secure Boot enabled.

0 commit comments

Comments
 (0)