From e575e15101e34887731c4bab60e81bac504d7683 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:21:41 -0800 Subject: [PATCH] feat: [tpu] Add UNKNOWN to TPU node state, This state will be used to prevent a node from being marked as READY during diagnose after it has failed repair (#5941) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add UNKNOWN to TPU node state, This state will be used to prevent a node from being marked as READY during diagnose after it has failed repair PiperOrigin-RevId: 714068635 Source-Link: https://github.com/googleapis/googleapis/commit/c3556b45dc35a145e04b5692bc72e01a4f58a6b2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/651e1ce4c2b70cb145048e1f3de2fb8ee1800601 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiNjUxZTFjZTRjMmI3MGNiMTQ1MDQ4ZTFmM2RlMmZiOGVlMTgwMDYwMSJ9 * 🦉 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 Co-authored-by: d-goog <188102366+d-goog@users.noreply.github.com> --- .../protos/google/cloud/tpu/v1/cloud_tpu.proto | 3 +++ packages/google-cloud-tpu/protos/protos.d.ts | 3 ++- packages/google-cloud-tpu/protos/protos.js | 7 +++++++ packages/google-cloud-tpu/protos/protos.json | 3 ++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto b/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto index 3ad0bb109b3..c1d6cc63046 100644 --- a/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto +++ b/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto @@ -222,6 +222,9 @@ message Node { // TPU node is currently unhiding. UNHIDING = 15; + + // TPU node has unknown state after a failed repair. + UNKNOWN = 16; } // Health defines the status of a TPU node as reported by diff --git a/packages/google-cloud-tpu/protos/protos.d.ts b/packages/google-cloud-tpu/protos/protos.d.ts index 8527aaae851..6ab66c80862 100644 --- a/packages/google-cloud-tpu/protos/protos.d.ts +++ b/packages/google-cloud-tpu/protos/protos.d.ts @@ -710,7 +710,8 @@ export namespace google { TERMINATED = 12, HIDING = 13, HIDDEN = 14, - UNHIDING = 15 + UNHIDING = 15, + UNKNOWN = 16 } /** Health enum. */ diff --git a/packages/google-cloud-tpu/protos/protos.js b/packages/google-cloud-tpu/protos/protos.js index 8ea9b6e2e5b..8c11a646ea5 100644 --- a/packages/google-cloud-tpu/protos/protos.js +++ b/packages/google-cloud-tpu/protos/protos.js @@ -1382,6 +1382,7 @@ case 13: case 14: case 15: + case 16: break; } if (message.healthDescription != null && message.hasOwnProperty("healthDescription")) @@ -1552,6 +1553,10 @@ case 15: message.state = 15; break; + case "UNKNOWN": + case 16: + message.state = 16; + break; } if (object.healthDescription != null) message.healthDescription = String(object.healthDescription); @@ -1794,6 +1799,7 @@ * @property {number} HIDING=13 HIDING value * @property {number} HIDDEN=14 HIDDEN value * @property {number} UNHIDING=15 UNHIDING value + * @property {number} UNKNOWN=16 UNKNOWN value */ Node.State = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1812,6 +1818,7 @@ values[valuesById[13] = "HIDING"] = 13; values[valuesById[14] = "HIDDEN"] = 14; values[valuesById[15] = "UNHIDING"] = 15; + values[valuesById[16] = "UNKNOWN"] = 16; return values; })(); diff --git a/packages/google-cloud-tpu/protos/protos.json b/packages/google-cloud-tpu/protos/protos.json index 37b93a99624..622c526c350 100644 --- a/packages/google-cloud-tpu/protos/protos.json +++ b/packages/google-cloud-tpu/protos/protos.json @@ -422,7 +422,8 @@ "TERMINATED": 12, "HIDING": 13, "HIDDEN": 14, - "UNHIDING": 15 + "UNHIDING": 15, + "UNKNOWN": 16 } }, "Health": {