Skip to content

Commit 014e96c

Browse files
fix: [tpu] fix typings for IAM methods (#4446)
* feat: enable QueuedResources in us-east5 feat: add multislice_node flag PiperOrigin-RevId: 550674209 Source-Link: googleapis/googleapis@2ad3b4c Source-Link: googleapis/googleapis-gen@dbaaa6f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiZGJhYWE2ZjFjMWRiOWI5YjRiOTNmNzU1YzVjMDI5MTI4NjUwNjZhZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add `spot` tier in v2alpha Create QueuedResource API request PiperOrigin-RevId: 551066097 Source-Link: googleapis/googleapis@b9e70ad Source-Link: googleapis/googleapis-gen@b41d4d5 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiYjQxZDRkNTJjZmQ2ZTJhMGQ4NWNhZjI3Yzk3OGIzZDdmMDI0NDhkOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: fix typings for IAM methods docs: fixed links in the generated Markdown documentation PiperOrigin-RevId: 551610576 Source-Link: googleapis/googleapis@73b1313 Source-Link: googleapis/googleapis-gen@8bec066 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 * 🦉 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 9f9015b commit 014e96c

14 files changed

Lines changed: 2497 additions & 243 deletions

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ message Node {
389389
// The user-supplied description of the TPU. Maximum of 512 characters.
390390
string description = 3;
391391

392-
// Required. The type of hardware accelerators associated with this node.
393-
string accelerator_type = 5 [(google.api.field_behavior) = REQUIRED];
392+
// Optional. The type of hardware accelerators associated with this node.
393+
string accelerator_type = 5 [(google.api.field_behavior) = OPTIONAL];
394394

395395
// Output only. The current state for the TPU Node.
396396
State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -463,6 +463,13 @@ message Node {
463463

464464
// The AccleratorConfig for the TPU Node.
465465
AcceleratorConfig accelerator_config = 46;
466+
467+
// Output only. The qualified name of the QueuedResource that requested this
468+
// Node.
469+
string queued_resource = 47 [(google.api.field_behavior) = OUTPUT_ONLY];
470+
471+
// Output only. Whether the Node belongs to a Multislice group.
472+
bool multislice_node = 48 [(google.api.field_behavior) = OUTPUT_ONLY];
466473
}
467474

468475
// Request for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes].
@@ -592,7 +599,7 @@ message AcceleratorType {
592599
// The resource name.
593600
string name = 1;
594601

595-
// the accelerator type.
602+
// The accelerator type.
596603
string type = 2;
597604

598605
// The accelerator config.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ message QueuedResource {
569569
// BestEffort tier definition.
570570
message BestEffort {}
571571

572+
// Spot tier definition.
573+
message Spot {}
574+
572575
// Guaranteed tier definition.
573576
message Guaranteed {
574577
// Optional. Defines the minimum duration of the guarantee. If specified,
@@ -623,8 +626,11 @@ message QueuedResource {
623626
// The BestEffort tier.
624627
BestEffort best_effort = 3;
625628

626-
// The Guaranteed tier
629+
// The Guaranteed tier.
627630
Guaranteed guaranteed = 4;
631+
632+
// Optional. The Spot tier.
633+
Spot spot = 9 [(google.api.field_behavior) = OPTIONAL];
628634
}
629635

630636
// The queueing policy of the QueuedRequest.

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

Lines changed: 110 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)