Skip to content

Commit

Permalink
feat: [tpu] add AcceleratorConfig to ListAcceleratorTypesResponse (#4059
Browse files Browse the repository at this point in the history
)

* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 9, 2023
1 parent 3370cf1 commit 27f2e1e
Show file tree
Hide file tree
Showing 8 changed files with 544 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ message Node {

// Shielded Instance options.
ShieldedInstanceConfig shielded_instance_config = 45;

// The AccleratorConfig for the TPU Node.
AcceleratorConfig accelerator_config = 46;
}

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

// the accelerator type.
string type = 2;

// The accelerator config.
repeated AcceleratorConfig accelerator_configs = 3;
}

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

// A TPU accelerator configuration.
message AcceleratorConfig {
// TPU type.
enum Type {
// Unspecified version.
TYPE_UNSPECIFIED = 0;

// TPU v2.
V2 = 2;

// TPU v3.
V3 = 4;

// TPU v4.
V4 = 7;
}

// Required. Type of TPU.
Type type = 1 [(google.api.field_behavior) = REQUIRED];

// Required. Topology of TPU in chips.
string topology = 2 [(google.api.field_behavior) = REQUIRED];
}

// A set of Shielded Instance options.
message ShieldedInstanceConfig {
// Defines whether the instance has Secure Boot enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ message QueuedResource {
// The queueing policy of the QueuedRequest.
QueueingPolicy queueing_policy = 5;

// Output only. State of the QueuedResource request
// Output only. State of the QueuedResource request.
QueuedResourceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
}

Expand Down
126 changes: 126 additions & 0 deletions packages/google-cloud-tpu/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27f2e1e

Please sign in to comment.