From 7cbf6b20d0e4944779ba71aaa3388abbf3840ed5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:29:39 -0700 Subject: [PATCH] feat: [cloudbuild] Add LEGACY_BUCKET option to DefaultLogsBucketBehavior (#5700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add LEGACY_BUCKET option to DefaultLogsBucketBehavior docs: Sanitize docs PiperOrigin-RevId: 677021009 Source-Link: https://github.com/googleapis/googleapis/commit/a18d9b2c3563527b26c4b713469e795b92795271 Source-Link: https://github.com/googleapis/googleapis-gen/commit/09d68f35365c74ad276cea3e7c26553a1485faa0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWNsb3VkYnVpbGQvLk93bEJvdC55YW1sIiwiaCI6IjA5ZDY4ZjM1MzY1Yzc0YWQyNzZjZWEzZTdjMjY1NTNhMTQ4NWZhYTAifQ== * 🦉 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 --- .../protos/google/devtools/cloudbuild/v1/cloudbuild.proto | 7 +++++-- packages/google-devtools-cloudbuild/protos/protos.d.ts | 3 ++- packages/google-devtools-cloudbuild/protos/protos.js | 7 +++++++ packages/google-devtools-cloudbuild/protos/protos.json | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/google-devtools-cloudbuild/protos/google/devtools/cloudbuild/v1/cloudbuild.proto b/packages/google-devtools-cloudbuild/protos/google/devtools/cloudbuild/v1/cloudbuild.proto index c671471ac67..965d1c297b8 100644 --- a/packages/google-devtools-cloudbuild/protos/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/packages/google-devtools-cloudbuild/protos/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -2228,15 +2228,18 @@ message BuildOptions { NONE = 4; } - // Default GCS log bucket behavior options. + // Default Cloud Storage log bucket behavior options. enum DefaultLogsBucketBehavior { // Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0; // Bucket is located in user-owned project in the same region as the // build. The builder service account must have access to create and write - // to GCS buckets in the build project. + // to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1; + + // Bucket is located in a Google-owned project and is not regionalized. + LEGACY_BUCKET = 2; } // Requested hash for SourceProvenance. diff --git a/packages/google-devtools-cloudbuild/protos/protos.d.ts b/packages/google-devtools-cloudbuild/protos/protos.d.ts index 2f17b8f26f0..4b03ab67c8e 100644 --- a/packages/google-devtools-cloudbuild/protos/protos.d.ts +++ b/packages/google-devtools-cloudbuild/protos/protos.d.ts @@ -7468,7 +7468,8 @@ export namespace google { /** DefaultLogsBucketBehavior enum. */ enum DefaultLogsBucketBehavior { DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0, - REGIONAL_USER_OWNED_BUCKET = 1 + REGIONAL_USER_OWNED_BUCKET = 1, + LEGACY_BUCKET = 2 } } diff --git a/packages/google-devtools-cloudbuild/protos/protos.js b/packages/google-devtools-cloudbuild/protos/protos.js index 7328f242449..624866adf13 100644 --- a/packages/google-devtools-cloudbuild/protos/protos.js +++ b/packages/google-devtools-cloudbuild/protos/protos.js @@ -19088,6 +19088,7 @@ return "defaultLogsBucketBehavior: enum value expected"; case 0: case 1: + case 2: break; } return null; @@ -19309,6 +19310,10 @@ case 1: message.defaultLogsBucketBehavior = 1; break; + case "LEGACY_BUCKET": + case 2: + message.defaultLogsBucketBehavior = 2; + break; } return message; }; @@ -19720,11 +19725,13 @@ * @enum {number} * @property {number} DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED=0 DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED value * @property {number} REGIONAL_USER_OWNED_BUCKET=1 REGIONAL_USER_OWNED_BUCKET value + * @property {number} LEGACY_BUCKET=2 LEGACY_BUCKET value */ BuildOptions.DefaultLogsBucketBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED"] = 0; values[valuesById[1] = "REGIONAL_USER_OWNED_BUCKET"] = 1; + values[valuesById[2] = "LEGACY_BUCKET"] = 2; return values; })(); diff --git a/packages/google-devtools-cloudbuild/protos/protos.json b/packages/google-devtools-cloudbuild/protos/protos.json index d210425e646..bdecefe7862 100644 --- a/packages/google-devtools-cloudbuild/protos/protos.json +++ b/packages/google-devtools-cloudbuild/protos/protos.json @@ -2517,7 +2517,8 @@ "DefaultLogsBucketBehavior": { "values": { "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED": 0, - "REGIONAL_USER_OWNED_BUCKET": 1 + "REGIONAL_USER_OWNED_BUCKET": 1, + "LEGACY_BUCKET": 2 } } }