From 9f8c0c2d583656d39d6e6ad6a4b206642e647178 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:17:37 -0800 Subject: [PATCH] feat: [parallelstore] A new enum `DeploymentType` is added (#5863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new enum `DeploymentType` is added feat: A new field `deployment_type` is added to message `.google.cloud.parallelstore.v1beta.Instance` PiperOrigin-RevId: 702831788 Source-Link: https://github.com/googleapis/googleapis/commit/9ea2c56cb70d70f10fd2bef310ac9febe8d42d30 Source-Link: https://github.com/googleapis/googleapis-gen/commit/75e81055a97f04ef53e5b3f4703981f3de8852a2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6Ijc1ZTgxMDU1YTk3ZjA0ZWY1M2U1YjNmNDcwMzk4MWYzZGU4ODUyYTIifQ== * 🦉 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> --- .../parallelstore/v1beta/parallelstore.proto | 19 ++++++ .../protos/protos.d.ts | 13 ++++ .../protos/protos.js | 63 +++++++++++++++++++ .../protos/protos.json | 14 +++++ 4 files changed, 109 insertions(+) diff --git a/packages/google-cloud-parallelstore/protos/google/cloud/parallelstore/v1beta/parallelstore.proto b/packages/google-cloud-parallelstore/protos/google/cloud/parallelstore/v1beta/parallelstore.proto index 841751ef145..27f8251cb6e 100644 --- a/packages/google-cloud-parallelstore/protos/google/cloud/parallelstore/v1beta/parallelstore.proto +++ b/packages/google-cloud-parallelstore/protos/google/cloud/parallelstore/v1beta/parallelstore.proto @@ -190,6 +190,19 @@ enum DirectoryStripeLevel { DIRECTORY_STRIPE_LEVEL_MAX = 3; } +// Represents the deployment type for the instance. +enum DeploymentType { + // Default Deployment Type + // It is equivalent to SCRATCH + DEPLOYMENT_TYPE_UNSPECIFIED = 0; + + // Scratch + SCRATCH = 1; + + // Persistent + PERSISTENT = 2; +} + // A Parallelstore instance. message Instance { option (google.api.resource) = { @@ -307,6 +320,12 @@ message Instance { // number of files. DirectoryStripeLevel directory_stripe_level = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The deployment type of the instance. Allowed values are: + // + // * `SCRATCH`: the instance is a scratch instance. + // * `PERSISTENT`: the instance is a persistent instance. + DeploymentType deployment_type = 17 [(google.api.field_behavior) = OPTIONAL]; } // List instances request. diff --git a/packages/google-cloud-parallelstore/protos/protos.d.ts b/packages/google-cloud-parallelstore/protos/protos.d.ts index 8109648cd45..ec005b1872b 100644 --- a/packages/google-cloud-parallelstore/protos/protos.d.ts +++ b/packages/google-cloud-parallelstore/protos/protos.d.ts @@ -2755,6 +2755,13 @@ export namespace google { DIRECTORY_STRIPE_LEVEL_MAX = 3 } + /** DeploymentType enum. */ + enum DeploymentType { + DEPLOYMENT_TYPE_UNSPECIFIED = 0, + SCRATCH = 1, + PERSISTENT = 2 + } + /** Properties of an Instance. */ interface IInstance { @@ -2799,6 +2806,9 @@ export namespace google { /** Instance directoryStripeLevel */ directoryStripeLevel?: (google.cloud.parallelstore.v1beta.DirectoryStripeLevel|keyof typeof google.cloud.parallelstore.v1beta.DirectoryStripeLevel|null); + + /** Instance deploymentType */ + deploymentType?: (google.cloud.parallelstore.v1beta.DeploymentType|keyof typeof google.cloud.parallelstore.v1beta.DeploymentType|null); } /** Represents an Instance. */ @@ -2852,6 +2862,9 @@ export namespace google { /** Instance directoryStripeLevel. */ public directoryStripeLevel: (google.cloud.parallelstore.v1beta.DirectoryStripeLevel|keyof typeof google.cloud.parallelstore.v1beta.DirectoryStripeLevel); + /** Instance deploymentType. */ + public deploymentType: (google.cloud.parallelstore.v1beta.DeploymentType|keyof typeof google.cloud.parallelstore.v1beta.DeploymentType); + /** * Creates a new Instance instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-parallelstore/protos/protos.js b/packages/google-cloud-parallelstore/protos/protos.js index d3823b7e563..a70fecae130 100644 --- a/packages/google-cloud-parallelstore/protos/protos.js +++ b/packages/google-cloud-parallelstore/protos/protos.js @@ -6744,6 +6744,22 @@ return values; })(); + /** + * DeploymentType enum. + * @name google.cloud.parallelstore.v1beta.DeploymentType + * @enum {number} + * @property {number} DEPLOYMENT_TYPE_UNSPECIFIED=0 DEPLOYMENT_TYPE_UNSPECIFIED value + * @property {number} SCRATCH=1 SCRATCH value + * @property {number} PERSISTENT=2 PERSISTENT value + */ + v1beta.DeploymentType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEPLOYMENT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SCRATCH"] = 1; + values[valuesById[2] = "PERSISTENT"] = 2; + return values; + })(); + v1beta.Instance = (function() { /** @@ -6764,6 +6780,7 @@ * @property {string|null} [effectiveReservedIpRange] Instance effectiveReservedIpRange * @property {google.cloud.parallelstore.v1beta.FileStripeLevel|null} [fileStripeLevel] Instance fileStripeLevel * @property {google.cloud.parallelstore.v1beta.DirectoryStripeLevel|null} [directoryStripeLevel] Instance directoryStripeLevel + * @property {google.cloud.parallelstore.v1beta.DeploymentType|null} [deploymentType] Instance deploymentType */ /** @@ -6895,6 +6912,14 @@ */ Instance.prototype.directoryStripeLevel = 0; + /** + * Instance deploymentType. + * @member {google.cloud.parallelstore.v1beta.DeploymentType} deploymentType + * @memberof google.cloud.parallelstore.v1beta.Instance + * @instance + */ + Instance.prototype.deploymentType = 0; + /** * Creates a new Instance instance using the specified properties. * @function create @@ -6949,6 +6974,8 @@ writer.uint32(/* id 15, wireType 0 =*/120).int32(message.fileStripeLevel); if (message.directoryStripeLevel != null && Object.hasOwnProperty.call(message, "directoryStripeLevel")) writer.uint32(/* id 16, wireType 0 =*/128).int32(message.directoryStripeLevel); + if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.deploymentType); return writer; }; @@ -7060,6 +7087,10 @@ message.directoryStripeLevel = reader.int32(); break; } + case 17: { + message.deploymentType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -7173,6 +7204,15 @@ case 3: break; } + if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) + switch (message.deploymentType) { + default: + return "deploymentType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -7313,6 +7353,26 @@ message.directoryStripeLevel = 3; break; } + switch (object.deploymentType) { + default: + if (typeof object.deploymentType === "number") { + message.deploymentType = object.deploymentType; + break; + } + break; + case "DEPLOYMENT_TYPE_UNSPECIFIED": + case 0: + message.deploymentType = 0; + break; + case "SCRATCH": + case 1: + message.deploymentType = 1; + break; + case "PERSISTENT": + case 2: + message.deploymentType = 2; + break; + } return message; }; @@ -7350,6 +7410,7 @@ object.effectiveReservedIpRange = ""; object.fileStripeLevel = options.enums === String ? "FILE_STRIPE_LEVEL_UNSPECIFIED" : 0; object.directoryStripeLevel = options.enums === String ? "DIRECTORY_STRIPE_LEVEL_UNSPECIFIED" : 0; + object.deploymentType = options.enums === String ? "DEPLOYMENT_TYPE_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -7389,6 +7450,8 @@ object.fileStripeLevel = options.enums === String ? $root.google.cloud.parallelstore.v1beta.FileStripeLevel[message.fileStripeLevel] === undefined ? message.fileStripeLevel : $root.google.cloud.parallelstore.v1beta.FileStripeLevel[message.fileStripeLevel] : message.fileStripeLevel; if (message.directoryStripeLevel != null && message.hasOwnProperty("directoryStripeLevel")) object.directoryStripeLevel = options.enums === String ? $root.google.cloud.parallelstore.v1beta.DirectoryStripeLevel[message.directoryStripeLevel] === undefined ? message.directoryStripeLevel : $root.google.cloud.parallelstore.v1beta.DirectoryStripeLevel[message.directoryStripeLevel] : message.directoryStripeLevel; + if (message.deploymentType != null && message.hasOwnProperty("deploymentType")) + object.deploymentType = options.enums === String ? $root.google.cloud.parallelstore.v1beta.DeploymentType[message.deploymentType] === undefined ? message.deploymentType : $root.google.cloud.parallelstore.v1beta.DeploymentType[message.deploymentType] : message.deploymentType; return object; }; diff --git a/packages/google-cloud-parallelstore/protos/protos.json b/packages/google-cloud-parallelstore/protos/protos.json index 45ef388c148..f6f853f8d93 100644 --- a/packages/google-cloud-parallelstore/protos/protos.json +++ b/packages/google-cloud-parallelstore/protos/protos.json @@ -1104,6 +1104,13 @@ "DIRECTORY_STRIPE_LEVEL_MAX": 3 } }, + "DeploymentType": { + "values": { + "DEPLOYMENT_TYPE_UNSPECIFIED": 0, + "SCRATCH": 1, + "PERSISTENT": 2 + } + }, "Instance": { "options": { "(google.api.resource).type": "parallelstore.googleapis.com/Instance", @@ -1214,6 +1221,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "deploymentType": { + "type": "DeploymentType", + "id": 17, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": {