From 1a3497a49a09794a1636b3163335b307c1c18d87 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:38:17 -0800 Subject: [PATCH] feat: Add field for enabled Beta K8s APIs in proto (#3823) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add etags for cluster and node pool update operations Clients may now optionally specify the previously read etag for a cluster or node pool during update requests. The etag is regenerated every time the object is updated. If an etag is provided, it will be checked against the current etag, and the request will be rejected on mismatch. This is particularly useful for allowing two clients to concurrently update a repeated field without overwriting each other. PiperOrigin-RevId: 498249600 Source-Link: https://github.com/googleapis/googleapis/commit/9a294bf14b3343b3f144aa6e80fa858332d21274 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f0f0e1ffc3e28e203e7c233af4936688c9b2b07f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZjBmMGUxZmZjM2UyOGUyMDNlN2MyMzNhZjQ5MzY2ODhjOWIyYjA3ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add field for enabled Beta K8s APIs in proto --- feat: add etags for cluster and node pool update operations Clients may now optionally specify the previously read etag for a cluster or node pool during update requests. The etag is regenerated every time the object is updated. If an etag is provided, it will be checked against the current etag, and the request will be rejected on mismatch. This is particularly useful for allowing two clients to concurrently update a repeated field without overwriting each other. PiperOrigin-RevId: 500787735 Source-Link: https://github.com/googleapis/googleapis/commit/961d1eeff48d9a955a0ee66035fd31b689d2f035 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6d95a0e2be7fb65cfee8b49a29c0e21acf673195 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNmQ5NWEwZTJiZTdmYjY1Y2ZlZThiNDlhMjljMGUyMWFjZjY3MzE5NSJ9 * 🦉 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: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> --- packages/google-container/.mocharc.js | 2 +- packages/google-container/.prettierrc.js | 2 +- .../google/container/v1/cluster_service.proto | 20 ++ .../container/v1beta1/cluster_service.proto | 20 ++ packages/google-container/protos/protos.d.ts | 50 ++++- packages/google-container/protos/protos.js | 186 +++++++++++++++++- packages/google-container/protos/protos.json | 32 +++ .../v1/cluster_manager.update_node_pool.js | 6 + .../snippet_metadata.google.container.v1.json | 6 +- .../cluster_manager.cancel_operation.js | 2 +- .../cluster_manager.complete_i_p_rotation.js | 2 +- ...ster_manager.complete_node_pool_upgrade.js | 2 +- .../v1beta1/cluster_manager.create_cluster.js | 2 +- .../cluster_manager.create_node_pool.js | 2 +- .../v1beta1/cluster_manager.delete_cluster.js | 2 +- .../cluster_manager.delete_node_pool.js | 2 +- .../v1beta1/cluster_manager.get_cluster.js | 2 +- .../cluster_manager.get_j_s_o_n_web_keys.js | 2 +- .../v1beta1/cluster_manager.get_node_pool.js | 2 +- .../v1beta1/cluster_manager.get_operation.js | 2 +- .../cluster_manager.get_server_config.js | 2 +- .../v1beta1/cluster_manager.list_clusters.js | 2 +- .../v1beta1/cluster_manager.list_locations.js | 2 +- .../cluster_manager.list_node_pools.js | 2 +- .../cluster_manager.list_operations.js | 2 +- ...cluster_manager.list_usable_subnetworks.js | 2 +- ...ster_manager.rollback_node_pool_upgrade.js | 2 +- .../cluster_manager.set_addons_config.js | 2 +- .../v1beta1/cluster_manager.set_labels.js | 2 +- .../cluster_manager.set_legacy_abac.js | 2 +- .../v1beta1/cluster_manager.set_locations.js | 2 +- .../cluster_manager.set_logging_service.js | 2 +- .../cluster_manager.set_maintenance_policy.js | 2 +- .../cluster_manager.set_master_auth.js | 2 +- .../cluster_manager.set_monitoring_service.js | 2 +- .../cluster_manager.set_network_policy.js | 2 +- ...uster_manager.set_node_pool_autoscaling.js | 2 +- ...luster_manager.set_node_pool_management.js | 2 +- .../cluster_manager.set_node_pool_size.js | 2 +- .../cluster_manager.start_i_p_rotation.js | 2 +- .../v1beta1/cluster_manager.update_cluster.js | 2 +- .../v1beta1/cluster_manager.update_master.js | 2 +- .../cluster_manager.update_node_pool.js | 8 +- ...pet_metadata.google.container.v1beta1.json | 6 +- packages/google-container/src/index.ts | 2 +- .../src/v1/cluster_manager_client.ts | 4 + .../src/v1beta1/cluster_manager_client.ts | 6 +- .../google-container/src/v1beta1/index.ts | 2 +- .../test/gapic_cluster_manager_v1beta1.ts | 2 +- 49 files changed, 376 insertions(+), 44 deletions(-) diff --git a/packages/google-container/.mocharc.js b/packages/google-container/.mocharc.js index cdb7b752160..49e7e228701 100644 --- a/packages/google-container/.mocharc.js +++ b/packages/google-container/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/.prettierrc.js b/packages/google-container/.prettierrc.js index d546a4ad546..1e6cec783e4 100644 --- a/packages/google-container/.prettierrc.js +++ b/packages/google-container/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index e422e2213d3..28303a65be3 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1781,6 +1781,11 @@ message Cluster { // Node pool configs that apply to all auto-provisioned node pools // in autopilot clusters and node auto-provisioning enabled clusters. NodePoolAutoConfig node_pool_auto_config = 136; + + // This checksum is computed by the server based on the value of cluster + // fields, and may be sent on update requests to ensure the client has an + // up-to-date value before proceeding. + string etag = 139; } // Node pool configs that apply to all auto-provisioned node pools @@ -1979,6 +1984,11 @@ message ClusterUpdate { // The desired config of Gateway API on this cluster. GatewayAPIConfig desired_gateway_api_config = 114; + // The current etag of the cluster. + // If an etag is provided and does not match the current etag of the cluster, + // update will be blocked and an ABORTED error will be returned. + string etag = 115; + // The desired node pool logging configuration defaults for the cluster. NodePoolLoggingConfig desired_node_pool_logging_config = 116; @@ -2321,6 +2331,11 @@ message UpdateNodePoolRequest { // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; + // The current etag of the node pool. + // If an etag is provided and does not match the current etag of the node + // pool, update will be blocked and an ABORTED error will be returned. + string etag = 30; + // Enable or disable NCCL fast socket for the node pool. FastSocket fast_socket = 31; @@ -3129,6 +3144,11 @@ message NodePool { // Output only. [Output only] Update info contains relevant information during a node // pool update. UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // This checksum is computed by the server based on the value of node pool + // fields, and may be sent on update requests to ensure the client has an + // up-to-date value before proceeding. + string etag = 110; } // NodeManagement defines the set of node management services turned on for the diff --git a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto index 0c2e6c16d74..b997df6eb08 100644 --- a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto @@ -1961,6 +1961,11 @@ message Cluster { // Enable/Disable Protect API features for the cluster. optional ProtectConfig protect_config = 137; + + // This checksum is computed by the server based on the value of cluster + // fields, and may be sent on update requests to ensure the client has an + // up-to-date value before proceeding. + string etag = 139; } // WorkloadConfig defines the flags to enable or disable the @@ -2234,6 +2239,11 @@ message ClusterUpdate { // The desired config of Gateway API on this cluster. GatewayAPIConfig desired_gateway_api_config = 114; + // The current etag of the cluster. + // If an etag is provided and does not match the current etag of the cluster, + // update will be blocked and an ABORTED error will be returned. + string etag = 115; + // The desired node pool logging configuration defaults for the cluster. NodePoolLoggingConfig desired_node_pool_logging_config = 116; @@ -2612,6 +2622,11 @@ message UpdateNodePoolRequest { // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; + // The current etag of the node pool. + // If an etag is provided and does not match the current etag of the node + // pool, update will be blocked and an ABORTED error will be returned. + string etag = 30; + // Enable or disable NCCL fast socket for the node pool. FastSocket fast_socket = 31; @@ -3609,6 +3624,11 @@ message NodePool { // Output only. [Output only] Update info contains relevant information during a node // pool update. UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // This checksum is computed by the server based on the value of node pool + // fields, and may be sent on update requests to ensure the client has an + // up-to-date value before proceeding. + string etag = 110; } // NodeManagement defines the set of node management services turned on for the diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index a622ca98a1b..33544a6bd23 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -5249,6 +5249,9 @@ export namespace google { /** Cluster nodePoolAutoConfig */ nodePoolAutoConfig?: (google.container.v1.INodePoolAutoConfig|null); + + /** Cluster etag */ + etag?: (string|null); } /** Represents a Cluster. */ @@ -5446,6 +5449,9 @@ export namespace google { /** Cluster nodePoolAutoConfig. */ public nodePoolAutoConfig?: (google.container.v1.INodePoolAutoConfig|null); + /** Cluster etag. */ + public etag: string; + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -5952,6 +5958,9 @@ export namespace google { /** ClusterUpdate desiredGatewayApiConfig */ desiredGatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); + /** ClusterUpdate etag */ + etag?: (string|null); + /** ClusterUpdate desiredNodePoolLoggingConfig */ desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); @@ -6079,6 +6088,9 @@ export namespace google { /** ClusterUpdate desiredGatewayApiConfig. */ public desiredGatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); + /** ClusterUpdate etag. */ + public etag: string; + /** ClusterUpdate desiredNodePoolLoggingConfig. */ public desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); @@ -7027,6 +7039,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic */ gvnic?: (google.container.v1.IVirtualNIC|null); + /** UpdateNodePoolRequest etag */ + etag?: (string|null); + /** UpdateNodePoolRequest fastSocket */ fastSocket?: (google.container.v1.IFastSocket|null); @@ -7106,6 +7121,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic. */ public gvnic?: (google.container.v1.IVirtualNIC|null); + /** UpdateNodePoolRequest etag. */ + public etag: string; + /** UpdateNodePoolRequest fastSocket. */ public fastSocket?: (google.container.v1.IFastSocket|null); @@ -9944,6 +9962,9 @@ export namespace google { /** NodePool updateInfo */ updateInfo?: (google.container.v1.NodePool.IUpdateInfo|null); + + /** NodePool etag */ + etag?: (string|null); } /** Represents a NodePool. */ @@ -10009,6 +10030,9 @@ export namespace google { /** NodePool updateInfo. */ public updateInfo?: (google.container.v1.NodePool.IUpdateInfo|null); + /** NodePool etag. */ + public etag: string; + /** * Creates a new NodePool instance using the specified properties. * @param [properties] Properties to set @@ -24825,6 +24849,9 @@ export namespace google { /** Cluster protectConfig */ protectConfig?: (google.container.v1beta1.IProtectConfig|null); + + /** Cluster etag */ + etag?: (string|null); } /** Represents a Cluster. */ @@ -25049,6 +25076,9 @@ export namespace google { /** Cluster protectConfig. */ public protectConfig?: (google.container.v1beta1.IProtectConfig|null); + /** Cluster etag. */ + public etag: string; + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -25810,6 +25840,9 @@ export namespace google { /** ClusterUpdate desiredGatewayApiConfig */ desiredGatewayApiConfig?: (google.container.v1beta1.IGatewayAPIConfig|null); + /** ClusterUpdate etag */ + etag?: (string|null); + /** ClusterUpdate desiredNodePoolLoggingConfig */ desiredNodePoolLoggingConfig?: (google.container.v1beta1.INodePoolLoggingConfig|null); @@ -25958,6 +25991,9 @@ export namespace google { /** ClusterUpdate desiredGatewayApiConfig. */ public desiredGatewayApiConfig?: (google.container.v1beta1.IGatewayAPIConfig|null); + /** ClusterUpdate etag. */ + public etag: string; + /** ClusterUpdate desiredNodePoolLoggingConfig. */ public desiredNodePoolLoggingConfig?: (google.container.v1beta1.INodePoolLoggingConfig|null); @@ -26909,6 +26945,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic */ gvnic?: (google.container.v1beta1.IVirtualNIC|null); + /** UpdateNodePoolRequest etag */ + etag?: (string|null); + /** UpdateNodePoolRequest fastSocket */ fastSocket?: (google.container.v1beta1.IFastSocket|null); @@ -26988,6 +27027,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic. */ public gvnic?: (google.container.v1beta1.IVirtualNIC|null); + /** UpdateNodePoolRequest etag. */ + public etag: string; + /** UpdateNodePoolRequest fastSocket. */ public fastSocket?: (google.container.v1beta1.IFastSocket|null); @@ -30153,6 +30195,9 @@ export namespace google { /** NodePool updateInfo */ updateInfo?: (google.container.v1beta1.NodePool.IUpdateInfo|null); + + /** NodePool etag */ + etag?: (string|null); } /** Represents a NodePool. */ @@ -30218,6 +30263,9 @@ export namespace google { /** NodePool updateInfo. */ public updateInfo?: (google.container.v1beta1.NodePool.IUpdateInfo|null); + /** NodePool etag. */ + public etag: string; + /** * Creates a new NodePool instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 66959bda6df..e6763077914 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -12022,6 +12022,7 @@ * @property {google.container.v1.ILoggingConfig|null} [loggingConfig] Cluster loggingConfig * @property {google.container.v1.IMonitoringConfig|null} [monitoringConfig] Cluster monitoringConfig * @property {google.container.v1.INodePoolAutoConfig|null} [nodePoolAutoConfig] Cluster nodePoolAutoConfig + * @property {string|null} [etag] Cluster etag */ /** @@ -12540,6 +12541,14 @@ */ Cluster.prototype.nodePoolAutoConfig = null; + /** + * Cluster etag. + * @member {string} etag + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.etag = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -12707,6 +12716,8 @@ $root.google.container.v1.MonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 133, wireType 2 =*/1066).fork()).ldelim(); if (message.nodePoolAutoConfig != null && Object.hasOwnProperty.call(message, "nodePoolAutoConfig")) $root.google.container.v1.NodePoolAutoConfig.encode(message.nodePoolAutoConfig, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 139, wireType 2 =*/1114).string(message.etag); return writer; }; @@ -13016,6 +13027,10 @@ message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.decode(reader, reader.uint32()); break; } + case 139: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -13336,6 +13351,9 @@ if (error) return "nodePoolAutoConfig." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -13630,6 +13648,8 @@ throw TypeError(".google.container.v1.Cluster.nodePoolAutoConfig: object expected"); message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.fromObject(object.nodePoolAutoConfig); } + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -13711,6 +13731,7 @@ object.loggingConfig = null; object.monitoringConfig = null; object.nodePoolAutoConfig = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -13855,6 +13876,8 @@ object.monitoringConfig = $root.google.container.v1.MonitoringConfig.toObject(message.monitoringConfig, options); if (message.nodePoolAutoConfig != null && message.hasOwnProperty("nodePoolAutoConfig")) object.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.toObject(message.nodePoolAutoConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; @@ -14607,6 +14630,7 @@ * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags * @property {google.container.v1.IGatewayAPIConfig|null} [desiredGatewayApiConfig] ClusterUpdate desiredGatewayApiConfig + * @property {string|null} [etag] ClusterUpdate etag * @property {google.container.v1.INodePoolLoggingConfig|null} [desiredNodePoolLoggingConfig] ClusterUpdate desiredNodePoolLoggingConfig * @property {google.container.v1.StackType|null} [desiredStackType] ClusterUpdate desiredStackType */ @@ -14923,6 +14947,14 @@ */ ClusterUpdate.prototype.desiredGatewayApiConfig = null; + /** + * ClusterUpdate etag. + * @member {string} etag + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.etag = ""; + /** * ClusterUpdate desiredNodePoolLoggingConfig. * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} desiredNodePoolLoggingConfig @@ -15052,6 +15084,8 @@ $root.google.container.v1.NetworkTags.encode(message.desiredNodePoolAutoConfigNetworkTags, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); if (message.desiredGatewayApiConfig != null && Object.hasOwnProperty.call(message, "desiredGatewayApiConfig")) $root.google.container.v1.GatewayAPIConfig.encode(message.desiredGatewayApiConfig, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 115, wireType 2 =*/922).string(message.etag); if (message.desiredNodePoolLoggingConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolLoggingConfig")) $root.google.container.v1.NodePoolLoggingConfig.encode(message.desiredNodePoolLoggingConfig, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); if (message.desiredStackType != null && Object.hasOwnProperty.call(message, "desiredStackType")) @@ -15240,6 +15274,10 @@ message.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.decode(reader, reader.uint32()); break; } + case 115: { + message.etag = reader.string(); + break; + } case 116: { message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); break; @@ -15468,6 +15506,9 @@ if (error) return "desiredGatewayApiConfig." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) { var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.desiredNodePoolLoggingConfig); if (error) @@ -15697,6 +15738,8 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredGatewayApiConfig: object expected"); message.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.fromObject(object.desiredGatewayApiConfig); } + if (object.etag != null) + message.etag = String(object.etag); if (object.desiredNodePoolLoggingConfig != null) { if (typeof object.desiredNodePoolLoggingConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolLoggingConfig: object expected"); @@ -15776,6 +15819,7 @@ object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; object.desiredGatewayApiConfig = null; + object.etag = ""; object.desiredNodePoolLoggingConfig = null; object.desiredStackType = options.enums === String ? "STACK_TYPE_UNSPECIFIED" : 0; } @@ -15859,6 +15903,8 @@ object.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.toObject(message.desiredNodePoolAutoConfigNetworkTags, options); if (message.desiredGatewayApiConfig != null && message.hasOwnProperty("desiredGatewayApiConfig")) object.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.toObject(message.desiredGatewayApiConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) object.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.desiredNodePoolLoggingConfig, options); if (message.desiredStackType != null && message.hasOwnProperty("desiredStackType")) @@ -18208,6 +18254,7 @@ * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] UpdateNodePoolRequest gcfsConfig * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] UpdateNodePoolRequest confidentialNodes * @property {google.container.v1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic + * @property {string|null} [etag] UpdateNodePoolRequest etag * @property {google.container.v1.IFastSocket|null} [fastSocket] UpdateNodePoolRequest fastSocket * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] UpdateNodePoolRequest loggingConfig * @property {google.container.v1.IResourceLabels|null} [resourceLabels] UpdateNodePoolRequest resourceLabels @@ -18382,6 +18429,14 @@ */ UpdateNodePoolRequest.prototype.gvnic = null; + /** + * UpdateNodePoolRequest etag. + * @member {string} etag + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.etag = ""; + /** * UpdateNodePoolRequest fastSocket. * @member {google.container.v1.IFastSocket|null|undefined} fastSocket @@ -18477,6 +18532,8 @@ $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.etag); if (message.fastSocket != null && Object.hasOwnProperty.call(message, "fastSocket")) $root.google.container.v1.FastSocket.encode(message.fastSocket, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) @@ -18597,6 +18654,10 @@ message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); break; } + case 30: { + message.etag = reader.string(); + break; + } case 31: { message.fastSocket = $root.google.container.v1.FastSocket.decode(reader, reader.uint32()); break; @@ -18731,6 +18792,9 @@ if (error) return "gvnic." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; if (message.fastSocket != null && message.hasOwnProperty("fastSocket")) { var error = $root.google.container.v1.FastSocket.verify(message.fastSocket); if (error) @@ -18842,6 +18906,8 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.gvnic: object expected"); message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); } + if (object.etag != null) + message.etag = String(object.etag); if (object.fastSocket != null) { if (typeof object.fastSocket !== "object") throw TypeError(".google.container.v1.UpdateNodePoolRequest.fastSocket: object expected"); @@ -18899,6 +18965,7 @@ object.gcfsConfig = null; object.confidentialNodes = null; object.gvnic = null; + object.etag = ""; object.fastSocket = null; object.loggingConfig = null; object.resourceLabels = null; @@ -18945,6 +19012,8 @@ object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); if (message.gvnic != null && message.hasOwnProperty("gvnic")) object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; if (message.fastSocket != null && message.hasOwnProperty("fastSocket")) object.fastSocket = $root.google.container.v1.FastSocket.toObject(message.fastSocket, options); if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) @@ -25720,6 +25789,7 @@ * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] NodePool upgradeSettings * @property {google.container.v1.NodePool.IPlacementPolicy|null} [placementPolicy] NodePool placementPolicy * @property {google.container.v1.NodePool.IUpdateInfo|null} [updateInfo] NodePool updateInfo + * @property {string|null} [etag] NodePool etag */ /** @@ -25884,6 +25954,14 @@ */ NodePool.prototype.updateInfo = null; + /** + * NodePool etag. + * @member {string} etag + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.etag = ""; + /** * Creates a new NodePool instance using the specified properties. * @function create @@ -25947,6 +26025,8 @@ $root.google.container.v1.NodePool.PlacementPolicy.encode(message.placementPolicy, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); if (message.updateInfo != null && Object.hasOwnProperty.call(message, "updateInfo")) $root.google.container.v1.NodePool.UpdateInfo.encode(message.updateInfo, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.etag); return writer; }; @@ -26059,6 +26139,10 @@ message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.decode(reader, reader.uint32()); break; } + case 110: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26188,6 +26272,9 @@ if (error) return "updateInfo." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -26315,6 +26402,8 @@ throw TypeError(".google.container.v1.NodePool.updateInfo: object expected"); message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.fromObject(object.updateInfo); } + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -26352,6 +26441,7 @@ object.upgradeSettings = null; object.placementPolicy = null; object.updateInfo = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -26398,6 +26488,8 @@ object.placementPolicy = $root.google.container.v1.NodePool.PlacementPolicy.toObject(message.placementPolicy, options); if (message.updateInfo != null && message.hasOwnProperty("updateInfo")) object.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.toObject(message.updateInfo, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; @@ -61348,6 +61440,7 @@ * @property {google.container.v1beta1.IMonitoringConfig|null} [monitoringConfig] Cluster monitoringConfig * @property {google.container.v1beta1.INodePoolAutoConfig|null} [nodePoolAutoConfig] Cluster nodePoolAutoConfig * @property {google.container.v1beta1.IProtectConfig|null} [protectConfig] Cluster protectConfig + * @property {string|null} [etag] Cluster etag */ /** @@ -61938,6 +62031,14 @@ */ Cluster.prototype.protectConfig = null; + /** + * Cluster etag. + * @member {string} etag + * @memberof google.container.v1beta1.Cluster + * @instance + */ + Cluster.prototype.etag = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -62134,6 +62235,8 @@ $root.google.container.v1beta1.NodePoolAutoConfig.encode(message.nodePoolAutoConfig, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim(); if (message.protectConfig != null && Object.hasOwnProperty.call(message, "protectConfig")) $root.google.container.v1beta1.ProtectConfig.encode(message.protectConfig, writer.uint32(/* id 137, wireType 2 =*/1098).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 139, wireType 2 =*/1114).string(message.etag); return writer; }; @@ -62479,6 +62582,10 @@ message.protectConfig = $root.google.container.v1beta1.ProtectConfig.decode(reader, reader.uint32()); break; } + case 139: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -62843,6 +62950,9 @@ return "protectConfig." + error; } } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -63176,6 +63286,8 @@ throw TypeError(".google.container.v1beta1.Cluster.protectConfig: object expected"); message.protectConfig = $root.google.container.v1beta1.ProtectConfig.fromObject(object.protectConfig); } + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -63265,6 +63377,7 @@ object.loggingConfig = null; object.monitoringConfig = null; object.nodePoolAutoConfig = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -63430,6 +63543,8 @@ if (options.oneofs) object._protectConfig = "protectConfig"; } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; @@ -64769,6 +64884,7 @@ * @property {google.container.v1beta1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags * @property {google.container.v1beta1.IProtectConfig|null} [desiredProtectConfig] ClusterUpdate desiredProtectConfig * @property {google.container.v1beta1.IGatewayAPIConfig|null} [desiredGatewayApiConfig] ClusterUpdate desiredGatewayApiConfig + * @property {string|null} [etag] ClusterUpdate etag * @property {google.container.v1beta1.INodePoolLoggingConfig|null} [desiredNodePoolLoggingConfig] ClusterUpdate desiredNodePoolLoggingConfig * @property {google.container.v1beta1.StackType|null} [desiredStackType] ClusterUpdate desiredStackType */ @@ -65141,6 +65257,14 @@ */ ClusterUpdate.prototype.desiredGatewayApiConfig = null; + /** + * ClusterUpdate etag. + * @member {string} etag + * @memberof google.container.v1beta1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.etag = ""; + /** * ClusterUpdate desiredNodePoolLoggingConfig. * @member {google.container.v1beta1.INodePoolLoggingConfig|null|undefined} desiredNodePoolLoggingConfig @@ -65295,6 +65419,8 @@ $root.google.container.v1beta1.ProtectConfig.encode(message.desiredProtectConfig, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); if (message.desiredGatewayApiConfig != null && Object.hasOwnProperty.call(message, "desiredGatewayApiConfig")) $root.google.container.v1beta1.GatewayAPIConfig.encode(message.desiredGatewayApiConfig, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 115, wireType 2 =*/922).string(message.etag); if (message.desiredNodePoolLoggingConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolLoggingConfig")) $root.google.container.v1beta1.NodePoolLoggingConfig.encode(message.desiredNodePoolLoggingConfig, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); if (message.desiredStackType != null && Object.hasOwnProperty.call(message, "desiredStackType")) @@ -65511,6 +65637,10 @@ message.desiredGatewayApiConfig = $root.google.container.v1beta1.GatewayAPIConfig.decode(reader, reader.uint32()); break; } + case 115: { + message.etag = reader.string(); + break; + } case 116: { message.desiredNodePoolLoggingConfig = $root.google.container.v1beta1.NodePoolLoggingConfig.decode(reader, reader.uint32()); break; @@ -65777,6 +65907,9 @@ if (error) return "desiredGatewayApiConfig." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) { var error = $root.google.container.v1beta1.NodePoolLoggingConfig.verify(message.desiredNodePoolLoggingConfig); if (error) @@ -66041,6 +66174,8 @@ throw TypeError(".google.container.v1beta1.ClusterUpdate.desiredGatewayApiConfig: object expected"); message.desiredGatewayApiConfig = $root.google.container.v1beta1.GatewayAPIConfig.fromObject(object.desiredGatewayApiConfig); } + if (object.etag != null) + message.etag = String(object.etag); if (object.desiredNodePoolLoggingConfig != null) { if (typeof object.desiredNodePoolLoggingConfig !== "object") throw TypeError(".google.container.v1beta1.ClusterUpdate.desiredNodePoolLoggingConfig: object expected"); @@ -66126,6 +66261,7 @@ object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; object.desiredGatewayApiConfig = null; + object.etag = ""; object.desiredNodePoolLoggingConfig = null; object.desiredStackType = options.enums === String ? "STACK_TYPE_UNSPECIFIED" : 0; } @@ -66226,6 +66362,8 @@ } if (message.desiredGatewayApiConfig != null && message.hasOwnProperty("desiredGatewayApiConfig")) object.desiredGatewayApiConfig = $root.google.container.v1beta1.GatewayAPIConfig.toObject(message.desiredGatewayApiConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) object.desiredNodePoolLoggingConfig = $root.google.container.v1beta1.NodePoolLoggingConfig.toObject(message.desiredNodePoolLoggingConfig, options); if (message.desiredStackType != null && message.hasOwnProperty("desiredStackType")) @@ -68575,6 +68713,7 @@ * @property {google.container.v1beta1.IGcfsConfig|null} [gcfsConfig] UpdateNodePoolRequest gcfsConfig * @property {google.container.v1beta1.IConfidentialNodes|null} [confidentialNodes] UpdateNodePoolRequest confidentialNodes * @property {google.container.v1beta1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic + * @property {string|null} [etag] UpdateNodePoolRequest etag * @property {google.container.v1beta1.IFastSocket|null} [fastSocket] UpdateNodePoolRequest fastSocket * @property {google.container.v1beta1.INodePoolLoggingConfig|null} [loggingConfig] UpdateNodePoolRequest loggingConfig * @property {google.container.v1beta1.IResourceLabels|null} [resourceLabels] UpdateNodePoolRequest resourceLabels @@ -68749,6 +68888,14 @@ */ UpdateNodePoolRequest.prototype.gvnic = null; + /** + * UpdateNodePoolRequest etag. + * @member {string} etag + * @memberof google.container.v1beta1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.etag = ""; + /** * UpdateNodePoolRequest fastSocket. * @member {google.container.v1beta1.IFastSocket|null|undefined} fastSocket @@ -68844,6 +68991,8 @@ $root.google.container.v1beta1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) $root.google.container.v1beta1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.etag); if (message.fastSocket != null && Object.hasOwnProperty.call(message, "fastSocket")) $root.google.container.v1beta1.FastSocket.encode(message.fastSocket, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) @@ -68964,6 +69113,10 @@ message.gvnic = $root.google.container.v1beta1.VirtualNIC.decode(reader, reader.uint32()); break; } + case 30: { + message.etag = reader.string(); + break; + } case 31: { message.fastSocket = $root.google.container.v1beta1.FastSocket.decode(reader, reader.uint32()); break; @@ -69098,6 +69251,9 @@ if (error) return "gvnic." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; if (message.fastSocket != null && message.hasOwnProperty("fastSocket")) { var error = $root.google.container.v1beta1.FastSocket.verify(message.fastSocket); if (error) @@ -69209,6 +69365,8 @@ throw TypeError(".google.container.v1beta1.UpdateNodePoolRequest.gvnic: object expected"); message.gvnic = $root.google.container.v1beta1.VirtualNIC.fromObject(object.gvnic); } + if (object.etag != null) + message.etag = String(object.etag); if (object.fastSocket != null) { if (typeof object.fastSocket !== "object") throw TypeError(".google.container.v1beta1.UpdateNodePoolRequest.fastSocket: object expected"); @@ -69266,6 +69424,7 @@ object.gcfsConfig = null; object.confidentialNodes = null; object.gvnic = null; + object.etag = ""; object.fastSocket = null; object.loggingConfig = null; object.resourceLabels = null; @@ -69312,6 +69471,8 @@ object.confidentialNodes = $root.google.container.v1beta1.ConfidentialNodes.toObject(message.confidentialNodes, options); if (message.gvnic != null && message.hasOwnProperty("gvnic")) object.gvnic = $root.google.container.v1beta1.VirtualNIC.toObject(message.gvnic, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; if (message.fastSocket != null && message.hasOwnProperty("fastSocket")) object.fastSocket = $root.google.container.v1beta1.FastSocket.toObject(message.fastSocket, options); if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) @@ -76904,6 +77065,7 @@ * @property {google.container.v1beta1.NodePool.IUpgradeSettings|null} [upgradeSettings] NodePool upgradeSettings * @property {google.container.v1beta1.NodePool.IPlacementPolicy|null} [placementPolicy] NodePool placementPolicy * @property {google.container.v1beta1.NodePool.IUpdateInfo|null} [updateInfo] NodePool updateInfo + * @property {string|null} [etag] NodePool etag */ /** @@ -77068,6 +77230,14 @@ */ NodePool.prototype.updateInfo = null; + /** + * NodePool etag. + * @member {string} etag + * @memberof google.container.v1beta1.NodePool + * @instance + */ + NodePool.prototype.etag = ""; + /** * Creates a new NodePool instance using the specified properties. * @function create @@ -77131,6 +77301,8 @@ $root.google.container.v1beta1.NodePool.PlacementPolicy.encode(message.placementPolicy, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); if (message.updateInfo != null && Object.hasOwnProperty.call(message, "updateInfo")) $root.google.container.v1beta1.NodePool.UpdateInfo.encode(message.updateInfo, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.etag); return writer; }; @@ -77243,6 +77415,10 @@ message.updateInfo = $root.google.container.v1beta1.NodePool.UpdateInfo.decode(reader, reader.uint32()); break; } + case 110: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -77372,6 +77548,9 @@ if (error) return "updateInfo." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -77499,6 +77678,8 @@ throw TypeError(".google.container.v1beta1.NodePool.updateInfo: object expected"); message.updateInfo = $root.google.container.v1beta1.NodePool.UpdateInfo.fromObject(object.updateInfo); } + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -77536,6 +77717,7 @@ object.upgradeSettings = null; object.placementPolicy = null; object.updateInfo = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -77582,6 +77764,8 @@ object.placementPolicy = $root.google.container.v1beta1.NodePool.PlacementPolicy.toObject(message.placementPolicy, options); if (message.updateInfo != null && message.hasOwnProperty("updateInfo")) object.updateInfo = $root.google.container.v1beta1.NodePool.UpdateInfo.toObject(message.updateInfo, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 37d9aa9790c..515676265ab 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1982,6 +1982,10 @@ "nodePoolAutoConfig": { "type": "NodePoolAutoConfig", "id": 136 + }, + "etag": { + "type": "string", + "id": 139 } }, "nested": { @@ -2187,6 +2191,10 @@ "type": "GatewayAPIConfig", "id": 114 }, + "etag": { + "type": "string", + "id": 115 + }, "desiredNodePoolLoggingConfig": { "type": "NodePoolLoggingConfig", "id": 116 @@ -2558,6 +2566,10 @@ "type": "VirtualNIC", "id": 29 }, + "etag": { + "type": "string", + "id": 30 + }, "fastSocket": { "type": "FastSocket", "id": 31 @@ -3365,6 +3377,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "etag": { + "type": "string", + "id": 110 } }, "nested": { @@ -7137,6 +7153,10 @@ "options": { "proto3_optional": true } + }, + "etag": { + "type": "string", + "id": 139 } }, "nested": { @@ -7454,6 +7474,10 @@ "type": "GatewayAPIConfig", "id": 114 }, + "etag": { + "type": "string", + "id": 115 + }, "desiredNodePoolLoggingConfig": { "type": "NodePoolLoggingConfig", "id": 116 @@ -7837,6 +7861,10 @@ "type": "VirtualNIC", "id": 29 }, + "etag": { + "type": "string", + "id": 30 + }, "fastSocket": { "type": "FastSocket", "id": 31 @@ -8752,6 +8780,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "etag": { + "type": "string", + "id": 110 } }, "nested": { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 50ad370e794..63f0e6b326f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -109,6 +109,12 @@ function main(nodeVersion, imageType) { * Enable or disable gvnic on the node pool. */ // const gvnic = {} + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + */ + // const etag = 'abc123' /** * Enable or disable NCCL fast socket for the node pool. */ diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 5800d2f229c..2ad2287804d 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 148, + "end": 154, "type": "FULL" } ], @@ -315,6 +315,10 @@ "name": "gvnic", "type": ".google.container.v1.VirtualNIC" }, + { + "name": "etag", + "type": "TYPE_STRING" + }, { "name": "fast_socket", "type": ".google.container.v1.FastSocket" diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.cancel_operation.js index 471df34c2a7..939c8c4aaca 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.cancel_operation.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.cancel_operation.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_i_p_rotation.js index 31d6b4c7eaa..57cb300a08f 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_i_p_rotation.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_node_pool_upgrade.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_node_pool_upgrade.js index cd725daf445..152c6971b1b 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.complete_node_pool_upgrade.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.create_cluster.js index a4afd046560..4414e1ca9d3 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.create_cluster.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.create_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.create_node_pool.js index 8e15c03c402..9d53c6be79e 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.create_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_cluster.js index f6a8e762337..d387c456166 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_cluster.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_node_pool.js index 70e9fde5f41..d406bb8686c 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_node_pool.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.delete_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_cluster.js index cd640bfaac3..0e388e69226 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_cluster.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_j_s_o_n_web_keys.js index 7fd35bfc50f..f48cfa5316d 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_j_s_o_n_web_keys.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_node_pool.js index f7b2a5c6b1c..21f384189f6 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_node_pool.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_operation.js index 135622a1a0d..f693d6982e6 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_operation.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_operation.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_server_config.js index 257aea3674c..147c03feb39 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.get_server_config.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.get_server_config.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_clusters.js index 0bfafb06810..3a468a6e586 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_clusters.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_locations.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_locations.js index 331f153b00c..62e86afb204 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_locations.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_locations.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_node_pools.js index fead114758f..6c5aaa855e4 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_node_pools.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_operations.js index 19ed1a9a89b..adaf08f3129 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_operations.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_operations.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_usable_subnetworks.js index ce8de43edc3..400d21f447c 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.list_usable_subnetworks.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.list_usable_subnetworks.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.rollback_node_pool_upgrade.js index 8972727ab17..fd127925ad0 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.rollback_node_pool_upgrade.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_addons_config.js index 52c9bf19864..1a0bcaa7948 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_addons_config.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_addons_config.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_labels.js index b7c931aaa1e..9690ae6d011 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_labels.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_legacy_abac.js index 42953c0f2da..c59d4c74879 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_legacy_abac.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_locations.js index f0e76b69780..7a830f08e75 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_locations.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_locations.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_logging_service.js index 9b10e0c5f03..e6cd4a0d7f1 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_logging_service.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_logging_service.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_maintenance_policy.js index 7757a7d4d89..fa688eb7520 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_maintenance_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_master_auth.js index e5c55004399..f39467e7cab 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_master_auth.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_master_auth.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_monitoring_service.js index f7470b273e5..a7fe3208d49 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_monitoring_service.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_monitoring_service.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_network_policy.js index efc2193bcb0..08f2bd01e43 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_network_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_autoscaling.js index e9e7021228f..48045be1f16 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_autoscaling.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_autoscaling.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_management.js index cd629b6f9dc..904e07be6c2 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_management.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_management.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_size.js index a2e226e2251..3903f3ff656 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_size.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.set_node_pool_size.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.start_i_p_rotation.js index 58425e8b3c9..181752cb53f 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.start_i_p_rotation.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_cluster.js index dc627e86cb8..23c5ff8b0c8 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_cluster.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_master.js index 11826d969f4..d76efa7a362 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_master.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_master.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js index 628502f099e..fc69333ccee 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -109,6 +109,12 @@ function main(projectId, zone, clusterId, nodePoolId, nodeVersion, imageType) { * Enable or disable gvnic on the node pool. */ // const gvnic = {} + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + */ + // const etag = 'abc123' /** * Enable or disable NCCL fast socket for the node pool. */ diff --git a/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json b/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json index f7d64987c84..d28a215f816 100644 --- a/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json +++ b/packages/google-container/samples/generated/v1beta1/snippet_metadata.google.container.v1beta1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 152, + "end": 158, "type": "FULL" } ], @@ -315,6 +315,10 @@ "name": "gvnic", "type": ".google.container.v1beta1.VirtualNIC" }, + { + "name": "etag", + "type": "TYPE_STRING" + }, { "name": "fast_socket", "type": ".google.container.v1beta1.FastSocket" diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts index 78006a94a5a..305acb4346f 100644 --- a/packages/google-container/src/index.ts +++ b/packages/google-container/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 42e9ca664d7..3806c6771a7 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -831,6 +831,10 @@ export class ClusterManagerClient { * All the nodes in the node pool will be Confidential VM once enabled. * @param {google.container.v1.VirtualNIC} request.gvnic * Enable or disable gvnic on the node pool. + * @param {string} request.etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. * @param {google.container.v1.FastSocket} request.fastSocket * Enable or disable NCCL fast socket for the node pool. * @param {google.container.v1.NodePoolLoggingConfig} request.loggingConfig diff --git a/packages/google-container/src/v1beta1/cluster_manager_client.ts b/packages/google-container/src/v1beta1/cluster_manager_client.ts index d467abc58d9..5463128367b 100644 --- a/packages/google-container/src/v1beta1/cluster_manager_client.ts +++ b/packages/google-container/src/v1beta1/cluster_manager_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -838,6 +838,10 @@ export class ClusterManagerClient { * All the nodes in the node pool will be Confidential VM once enabled. * @param {google.container.v1beta1.VirtualNIC} request.gvnic * Enable or disable gvnic on the node pool. + * @param {string} request.etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. * @param {google.container.v1beta1.FastSocket} request.fastSocket * Enable or disable NCCL fast socket for the node pool. * @param {google.container.v1beta1.NodePoolLoggingConfig} request.loggingConfig diff --git a/packages/google-container/src/v1beta1/index.ts b/packages/google-container/src/v1beta1/index.ts index 7952088fe56..b1b39233034 100644 --- a/packages/google-container/src/v1beta1/index.ts +++ b/packages/google-container/src/v1beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/test/gapic_cluster_manager_v1beta1.ts b/packages/google-container/test/gapic_cluster_manager_v1beta1.ts index 82c1ce58dfe..a4e009d8b21 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1beta1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.