From 932017559e975fbab4c0ce13fcc808e08425c117 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:57:34 -0500 Subject: [PATCH] feat: [deploy] A new field `dns_endpoint` is added to message `.google.cloud.deploy.v1.GkeCluster` (#5849) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new field `dns_endpoint` is added to message `.google.cloud.deploy.v1.GkeCluster` docs: A comment for field `internal_ip` in message `.google.cloud.deploy.v1.GkeCluster` is changed docs: A comment for field `skaffold_version` in message `.google.cloud.deploy.v1.Release` is changed docs: A comment for field `requested_cancellation` in message `.google.cloud.deploy.v1.OperationMetadata` is changed PiperOrigin-RevId: 702047981 Source-Link: https://github.com/googleapis/googleapis/commit/99a5e296c891faa79784687422b9d555bcf54a3f Source-Link: https://github.com/googleapis/googleapis-gen/commit/2fdcaafe5e1ebd6fe1921cbb53f41427086462df Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiMmZkY2FhZmU1ZTFlYmQ2ZmUxOTIxY2JiNTNmNDE0MjcwODY0NjJkZiJ9 * 🦉 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 --- .../google/cloud/deploy/v1/cloud_deploy.proto | 20 ++++++++++------ .../google-cloud-deploy/protos/protos.d.ts | 6 +++++ packages/google-cloud-deploy/protos/protos.js | 23 +++++++++++++++++++ .../google-cloud-deploy/protos/protos.json | 12 +++++++++- 4 files changed, 53 insertions(+), 8 deletions(-) diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto index 4e1d200c6f4..7f26318432a 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto @@ -1427,12 +1427,17 @@ message GkeCluster { // // Only specify this option when `cluster` is a [private GKE // cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + // Note that `internal_ip` and `dns_endpoint` cannot both be set to true. bool internal_ip = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set, used to configure a // [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) // to the Kubernetes server. string proxy_url = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the cluster will be accessed using the DNS endpoint. Note + // that `dns_endpoint` and `internal_ip` cannot both be set to true. + bool dns_endpoint = 4 [(google.api.field_behavior) = OPTIONAL]; } // Information specifying an Anthos Cluster. @@ -2468,12 +2473,12 @@ message Release { // client has an up-to-date value before proceeding. string etag = 16; - // The Skaffold version to use when operating on this release, such as - // "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - // of versions. + // Optional. The Skaffold version to use when operating on this release, such + // as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific + // set of versions. // // If unset, the most recent supported Skaffold version will be used. - string skaffold_version = 19; + string skaffold_version = 19 [(google.api.field_behavior) = OPTIONAL]; // Output only. Map from target ID to the target artifacts created // during the render operation. @@ -3444,9 +3449,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/packages/google-cloud-deploy/protos/protos.d.ts b/packages/google-cloud-deploy/protos/protos.d.ts index 682ff0eb185..5fe2dc882e6 100644 --- a/packages/google-cloud-deploy/protos/protos.d.ts +++ b/packages/google-cloud-deploy/protos/protos.d.ts @@ -5317,6 +5317,9 @@ export namespace google { /** GkeCluster proxyUrl */ proxyUrl?: (string|null); + + /** GkeCluster dnsEndpoint */ + dnsEndpoint?: (boolean|null); } /** Represents a GkeCluster. */ @@ -5337,6 +5340,9 @@ export namespace google { /** GkeCluster proxyUrl. */ public proxyUrl: string; + /** GkeCluster dnsEndpoint. */ + public dnsEndpoint: boolean; + /** * Creates a new GkeCluster instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-deploy/protos/protos.js b/packages/google-cloud-deploy/protos/protos.js index b4aa57345cc..6e5d28457b1 100644 --- a/packages/google-cloud-deploy/protos/protos.js +++ b/packages/google-cloud-deploy/protos/protos.js @@ -12928,6 +12928,7 @@ * @property {string|null} [cluster] GkeCluster cluster * @property {boolean|null} [internalIp] GkeCluster internalIp * @property {string|null} [proxyUrl] GkeCluster proxyUrl + * @property {boolean|null} [dnsEndpoint] GkeCluster dnsEndpoint */ /** @@ -12969,6 +12970,14 @@ */ GkeCluster.prototype.proxyUrl = ""; + /** + * GkeCluster dnsEndpoint. + * @member {boolean} dnsEndpoint + * @memberof google.cloud.deploy.v1.GkeCluster + * @instance + */ + GkeCluster.prototype.dnsEndpoint = false; + /** * Creates a new GkeCluster instance using the specified properties. * @function create @@ -12999,6 +13008,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.internalIp); if (message.proxyUrl != null && Object.hasOwnProperty.call(message, "proxyUrl")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.proxyUrl); + if (message.dnsEndpoint != null && Object.hasOwnProperty.call(message, "dnsEndpoint")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dnsEndpoint); return writer; }; @@ -13045,6 +13056,10 @@ message.proxyUrl = reader.string(); break; } + case 4: { + message.dnsEndpoint = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -13089,6 +13104,9 @@ if (message.proxyUrl != null && message.hasOwnProperty("proxyUrl")) if (!$util.isString(message.proxyUrl)) return "proxyUrl: string expected"; + if (message.dnsEndpoint != null && message.hasOwnProperty("dnsEndpoint")) + if (typeof message.dnsEndpoint !== "boolean") + return "dnsEndpoint: boolean expected"; return null; }; @@ -13110,6 +13128,8 @@ message.internalIp = Boolean(object.internalIp); if (object.proxyUrl != null) message.proxyUrl = String(object.proxyUrl); + if (object.dnsEndpoint != null) + message.dnsEndpoint = Boolean(object.dnsEndpoint); return message; }; @@ -13130,6 +13150,7 @@ object.cluster = ""; object.internalIp = false; object.proxyUrl = ""; + object.dnsEndpoint = false; } if (message.cluster != null && message.hasOwnProperty("cluster")) object.cluster = message.cluster; @@ -13137,6 +13158,8 @@ object.internalIp = message.internalIp; if (message.proxyUrl != null && message.hasOwnProperty("proxyUrl")) object.proxyUrl = message.proxyUrl; + if (message.dnsEndpoint != null && message.hasOwnProperty("dnsEndpoint")) + object.dnsEndpoint = message.dnsEndpoint; return object; }; diff --git a/packages/google-cloud-deploy/protos/protos.json b/packages/google-cloud-deploy/protos/protos.json index d76558b0530..e96798c7f56 100644 --- a/packages/google-cloud-deploy/protos/protos.json +++ b/packages/google-cloud-deploy/protos/protos.json @@ -2205,6 +2205,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "dnsEndpoint": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -3281,7 +3288,10 @@ }, "skaffoldVersion": { "type": "string", - "id": 19 + "id": 19, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "targetArtifacts": { "keyType": "string",