From 36cf66199d379bed5fa780a40a347997d9534fe8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:01:37 -0700 Subject: [PATCH] feat: added High Throughput Logging API for Google Kubernetes Engine (#571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added High Throughput Logging API for Google Kubernetes Engine docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform PiperOrigin-RevId: 474706444 Source-Link: https://github.com/googleapis/googleapis/commit/a5a88292731bf4038e37b14aba1286de98a76a14 Source-Link: https://github.com/googleapis/googleapis-gen/commit/992389d809ed37f8fd4d787209048551d9e61154 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTkyMzg5ZDgwOWVkMzdmOGZkNGQ3ODcyMDkwNDg1NTFkOWU2MTE1NCJ9 * 🦉 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/container/v1/cluster_service.proto | 43 +- packages/google-container/protos/protos.d.ts | 228 +++++++ packages/google-container/protos/protos.js | 560 +++++++++++++++++- packages/google-container/protos/protos.json | 41 ++ .../v1/cluster_manager.update_node_pool.js | 4 + .../snippet_metadata.google.container.v1.json | 6 +- .../src/v1/cluster_manager_client.ts | 2 + 7 files changed, 879 insertions(+), 5 deletions(-) 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 53a64980ba5..5b71bb8dae9 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -740,6 +740,9 @@ message NodeConfig { // Confidential nodes config. // All the nodes in the node pool will be Confidential VM once enabled. ConfidentialNodes confidential_nodes = 35; + + // Logging configuration. + NodePoolLoggingConfig logging_config = 38; } // Specifies options for controlling advanced machine features. @@ -876,8 +879,9 @@ message ReservationAffinity { Type consume_reservation_type = 1; // Corresponds to the label key of a reservation resource. To target a - // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as - // the key and specify the name of your reservation as its value. + // SPECIFIC_RESERVATION by name, specify + // "compute.googleapis.com/reservation-name" as the key and specify the name + // of your reservation as its value. string key = 2; // Corresponds to the label value(s) of reservation resource(s). @@ -1708,6 +1712,9 @@ message NodePoolDefaults { message NodeConfigDefaults { // GCFS (Google Container File System, also known as Riptide) options. GcfsConfig gcfs_config = 1; + + // Logging configuration for node pools. + NodePoolLoggingConfig logging_config = 3; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1871,6 +1878,9 @@ message ClusterUpdate { // The desired network tags that apply to all auto-provisioned node pools // in autopilot clusters and node auto-provisioning enabled clusters. NetworkTags desired_node_pool_auto_config_network_tags = 110; + + // The desired node pool logging configuration defaults for the cluster. + NodePoolLoggingConfig desired_node_pool_logging_config = 116; } // This operation resource represents operations that may have happened or are @@ -2205,6 +2215,9 @@ message UpdateNodePoolRequest { // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; + + // Logging configuration. + NodePoolLoggingConfig logging_config = 32; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -3305,7 +3318,7 @@ message AutoprovisioningNodePoolDefaults { // minCpuPlatform: Intel Haswell or // minCpuPlatform: Intel Sandy Bridge. For more // information, read [how to specify min CPU - // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using // https://cloud.google.com/requested-min-cpu-platform label selector on the // pod. @@ -4286,6 +4299,30 @@ message MonitoringConfig { ManagedPrometheusConfig managed_prometheus_config = 2; } +// NodePoolLoggingConfig specifies logging configuration for nodepools. +message NodePoolLoggingConfig { + // Logging variant configuration. + LoggingVariantConfig variant_config = 1; +} + +// LoggingVariantConfig specifies the behaviour of the logging component. +message LoggingVariantConfig { + // Logging component variants. + enum Variant { + // Default value. This shouldn't be used. + VARIANT_UNSPECIFIED = 0; + + // default logging variant. + DEFAULT = 1; + + // maximum logging throughput variant. + MAX_THROUGHPUT = 2; + } + + // Logging variant deployed on nodes. + Variant variant = 1; +} + // MonitoringComponentConfig is cluster monitoring component configuration. message MonitoringComponentConfig { // GKE components exposing metrics diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index dfa87f1fddc..061cfca530a 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1035,6 +1035,9 @@ export namespace google { /** NodeConfig confidentialNodes */ confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + + /** NodeConfig loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a NodeConfig. */ @@ -1127,6 +1130,9 @@ export namespace google { /** NodeConfig confidentialNodes. */ public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** NodeConfig loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -5336,6 +5342,9 @@ export namespace google { /** NodeConfigDefaults gcfsConfig */ gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** NodeConfigDefaults loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a NodeConfigDefaults. */ @@ -5350,6 +5359,9 @@ export namespace google { /** NodeConfigDefaults gcfsConfig. */ public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** NodeConfigDefaults loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new NodeConfigDefaults instance using the specified properties. * @param [properties] Properties to set @@ -5532,6 +5544,9 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags */ desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + + /** ClusterUpdate desiredNodePoolLoggingConfig */ + desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a ClusterUpdate. */ @@ -5645,6 +5660,9 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags. */ public desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + /** ClusterUpdate desiredNodePoolLoggingConfig. */ + public desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -6583,6 +6601,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic */ gvnic?: (google.container.v1.IVirtualNIC|null); + + /** UpdateNodePoolRequest loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents an UpdateNodePoolRequest. */ @@ -6651,6 +6672,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic. */ public gvnic?: (google.container.v1.IVirtualNIC|null); + /** UpdateNodePoolRequest loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -17251,6 +17275,210 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NodePoolLoggingConfig. */ + interface INodePoolLoggingConfig { + + /** NodePoolLoggingConfig variantConfig */ + variantConfig?: (google.container.v1.ILoggingVariantConfig|null); + } + + /** Represents a NodePoolLoggingConfig. */ + class NodePoolLoggingConfig implements INodePoolLoggingConfig { + + /** + * Constructs a new NodePoolLoggingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolLoggingConfig); + + /** NodePoolLoggingConfig variantConfig. */ + public variantConfig?: (google.container.v1.ILoggingVariantConfig|null); + + /** + * Creates a new NodePoolLoggingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolLoggingConfig instance + */ + public static create(properties?: google.container.v1.INodePoolLoggingConfig): google.container.v1.NodePoolLoggingConfig; + + /** + * Encodes the specified NodePoolLoggingConfig message. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @param message NodePoolLoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePoolLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePoolLoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @param message NodePoolLoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolLoggingConfig; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolLoggingConfig; + + /** + * Verifies a NodePoolLoggingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NodePoolLoggingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolLoggingConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolLoggingConfig; + + /** + * Creates a plain object from a NodePoolLoggingConfig message. Also converts values to other types if specified. + * @param message NodePoolLoggingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePoolLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolLoggingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePoolLoggingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LoggingVariantConfig. */ + interface ILoggingVariantConfig { + + /** LoggingVariantConfig variant */ + variant?: (google.container.v1.LoggingVariantConfig.Variant|keyof typeof google.container.v1.LoggingVariantConfig.Variant|null); + } + + /** Represents a LoggingVariantConfig. */ + class LoggingVariantConfig implements ILoggingVariantConfig { + + /** + * Constructs a new LoggingVariantConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILoggingVariantConfig); + + /** LoggingVariantConfig variant. */ + public variant: (google.container.v1.LoggingVariantConfig.Variant|keyof typeof google.container.v1.LoggingVariantConfig.Variant); + + /** + * Creates a new LoggingVariantConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingVariantConfig instance + */ + public static create(properties?: google.container.v1.ILoggingVariantConfig): google.container.v1.LoggingVariantConfig; + + /** + * Encodes the specified LoggingVariantConfig message. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @param message LoggingVariantConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILoggingVariantConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingVariantConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @param message LoggingVariantConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILoggingVariantConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.LoggingVariantConfig; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.LoggingVariantConfig; + + /** + * Verifies a LoggingVariantConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LoggingVariantConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingVariantConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LoggingVariantConfig; + + /** + * Creates a plain object from a LoggingVariantConfig message. Also converts values to other types if specified. + * @param message LoggingVariantConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LoggingVariantConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingVariantConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingVariantConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LoggingVariantConfig { + + /** Variant enum. */ + enum Variant { + VARIANT_UNSPECIFIED = 0, + DEFAULT = 1, + MAX_THROUGHPUT = 2 + } + } + /** Properties of a MonitoringComponentConfig. */ interface IMonitoringComponentConfig { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 4eada2b69ee..dabb7b7993a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1744,6 +1744,7 @@ * @property {google.container.v1.IVirtualNIC|null} [gvnic] NodeConfig gvnic * @property {boolean|null} [spot] NodeConfig spot * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] NodeConfig confidentialNodes + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfig loggingConfig */ /** @@ -1983,6 +1984,14 @@ */ NodeConfig.prototype.confidentialNodes = null; + /** + * NodeConfig loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.loggingConfig = null; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -2067,6 +2076,8 @@ writer.uint32(/* id 32, wireType 0 =*/256).bool(message.spot); if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); return writer; }; @@ -2255,6 +2266,10 @@ message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); break; } + case 38: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2421,6 +2436,11 @@ if (error) return "confidentialNodes." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -2556,6 +2576,11 @@ throw TypeError(".google.container.v1.NodeConfig.confidentialNodes: object expected"); message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -2604,6 +2629,7 @@ object.gvnic = null; object.spot = false; object.confidentialNodes = null; + object.loggingConfig = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -2678,6 +2704,8 @@ object.spot = message.spot; if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -13068,6 +13096,7 @@ * @memberof google.container.v1 * @interface INodeConfigDefaults * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfigDefaults gcfsConfig + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfigDefaults loggingConfig */ /** @@ -13093,6 +13122,14 @@ */ NodeConfigDefaults.prototype.gcfsConfig = null; + /** + * NodeConfigDefaults loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.NodeConfigDefaults + * @instance + */ + NodeConfigDefaults.prototype.loggingConfig = null; + /** * Creates a new NodeConfigDefaults instance using the specified properties. * @function create @@ -13119,6 +13156,8 @@ writer = $Writer.create(); if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -13157,6 +13196,10 @@ message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); break; } + case 3: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -13197,6 +13240,11 @@ if (error) return "gcfsConfig." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -13217,6 +13265,11 @@ throw TypeError(".google.container.v1.NodeConfigDefaults.gcfsConfig: object expected"); message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.NodeConfigDefaults.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -13233,10 +13286,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.gcfsConfig = null; + object.loggingConfig = null; + } if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -13309,6 +13366,7 @@ * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags + * @property {google.container.v1.INodePoolLoggingConfig|null} [desiredNodePoolLoggingConfig] ClusterUpdate desiredNodePoolLoggingConfig */ /** @@ -13599,6 +13657,14 @@ */ ClusterUpdate.prototype.desiredNodePoolAutoConfigNetworkTags = null; + /** + * ClusterUpdate desiredNodePoolLoggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} desiredNodePoolLoggingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolLoggingConfig = null; + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -13692,6 +13758,8 @@ $root.google.container.v1.GcfsConfig.encode(message.desiredGcfsConfig, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); if (message.desiredNodePoolAutoConfigNetworkTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigNetworkTags")) $root.google.container.v1.NetworkTags.encode(message.desiredNodePoolAutoConfigNetworkTags, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + 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(); return writer; }; @@ -13864,6 +13932,10 @@ message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); break; } + case 116: { + message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14068,6 +14140,11 @@ if (error) return "desiredNodePoolAutoConfigNetworkTags." + error; } + if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.desiredNodePoolLoggingConfig); + if (error) + return "desiredNodePoolLoggingConfig." + error; + } return null; }; @@ -14259,6 +14336,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigNetworkTags: object expected"); message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.fromObject(object.desiredNodePoolAutoConfigNetworkTags); } + if (object.desiredNodePoolLoggingConfig != null) { + if (typeof object.desiredNodePoolLoggingConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolLoggingConfig: object expected"); + message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.desiredNodePoolLoggingConfig); + } return message; }; @@ -14311,6 +14393,7 @@ object.desiredMasterVersion = ""; object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; + object.desiredNodePoolLoggingConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -14383,6 +14466,8 @@ object.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.desiredGcfsConfig, options); if (message.desiredNodePoolAutoConfigNetworkTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigNetworkTags")) object.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.toObject(message.desiredNodePoolAutoConfigNetworkTags, options); + if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) + object.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.desiredNodePoolLoggingConfig, options); return object; }; @@ -16710,6 +16795,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 {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] UpdateNodePoolRequest loggingConfig */ /** @@ -16880,6 +16966,14 @@ */ UpdateNodePoolRequest.prototype.gvnic = null; + /** + * UpdateNodePoolRequest loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.loggingConfig = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -16943,6 +17037,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.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; @@ -17055,6 +17151,10 @@ message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); break; } + case 32: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17173,6 +17273,11 @@ if (error) return "gvnic." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -17264,6 +17369,11 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.gvnic: object expected"); message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -17301,6 +17411,7 @@ object.gcfsConfig = null; object.confidentialNodes = null; object.gvnic = null; + object.loggingConfig = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -17343,6 +17454,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.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -43413,6 +43526,451 @@ return MonitoringConfig; })(); + v1.NodePoolLoggingConfig = (function() { + + /** + * Properties of a NodePoolLoggingConfig. + * @memberof google.container.v1 + * @interface INodePoolLoggingConfig + * @property {google.container.v1.ILoggingVariantConfig|null} [variantConfig] NodePoolLoggingConfig variantConfig + */ + + /** + * Constructs a new NodePoolLoggingConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolLoggingConfig. + * @implements INodePoolLoggingConfig + * @constructor + * @param {google.container.v1.INodePoolLoggingConfig=} [properties] Properties to set + */ + function NodePoolLoggingConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodePoolLoggingConfig variantConfig. + * @member {google.container.v1.ILoggingVariantConfig|null|undefined} variantConfig + * @memberof google.container.v1.NodePoolLoggingConfig + * @instance + */ + NodePoolLoggingConfig.prototype.variantConfig = null; + + /** + * Creates a new NodePoolLoggingConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig=} [properties] Properties to set + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig instance + */ + NodePoolLoggingConfig.create = function create(properties) { + return new NodePoolLoggingConfig(properties); + }; + + /** + * Encodes the specified NodePoolLoggingConfig message. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig} message NodePoolLoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolLoggingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variantConfig != null && Object.hasOwnProperty.call(message, "variantConfig")) + $root.google.container.v1.LoggingVariantConfig.encode(message.variantConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolLoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig} message NodePoolLoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolLoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolLoggingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolLoggingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.variantConfig = $root.google.container.v1.LoggingVariantConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolLoggingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolLoggingConfig message. + * @function verify + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolLoggingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variantConfig != null && message.hasOwnProperty("variantConfig")) { + var error = $root.google.container.v1.LoggingVariantConfig.verify(message.variantConfig); + if (error) + return "variantConfig." + error; + } + return null; + }; + + /** + * Creates a NodePoolLoggingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + */ + NodePoolLoggingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolLoggingConfig) + return object; + var message = new $root.google.container.v1.NodePoolLoggingConfig(); + if (object.variantConfig != null) { + if (typeof object.variantConfig !== "object") + throw TypeError(".google.container.v1.NodePoolLoggingConfig.variantConfig: object expected"); + message.variantConfig = $root.google.container.v1.LoggingVariantConfig.fromObject(object.variantConfig); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolLoggingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.NodePoolLoggingConfig} message NodePoolLoggingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolLoggingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.variantConfig = null; + if (message.variantConfig != null && message.hasOwnProperty("variantConfig")) + object.variantConfig = $root.google.container.v1.LoggingVariantConfig.toObject(message.variantConfig, options); + return object; + }; + + /** + * Converts this NodePoolLoggingConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolLoggingConfig + * @instance + * @returns {Object.} JSON object + */ + NodePoolLoggingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodePoolLoggingConfig + * @function getTypeUrl + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolLoggingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolLoggingConfig"; + }; + + return NodePoolLoggingConfig; + })(); + + v1.LoggingVariantConfig = (function() { + + /** + * Properties of a LoggingVariantConfig. + * @memberof google.container.v1 + * @interface ILoggingVariantConfig + * @property {google.container.v1.LoggingVariantConfig.Variant|null} [variant] LoggingVariantConfig variant + */ + + /** + * Constructs a new LoggingVariantConfig. + * @memberof google.container.v1 + * @classdesc Represents a LoggingVariantConfig. + * @implements ILoggingVariantConfig + * @constructor + * @param {google.container.v1.ILoggingVariantConfig=} [properties] Properties to set + */ + function LoggingVariantConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LoggingVariantConfig variant. + * @member {google.container.v1.LoggingVariantConfig.Variant} variant + * @memberof google.container.v1.LoggingVariantConfig + * @instance + */ + LoggingVariantConfig.prototype.variant = 0; + + /** + * Creates a new LoggingVariantConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig=} [properties] Properties to set + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig instance + */ + LoggingVariantConfig.create = function create(properties) { + return new LoggingVariantConfig(properties); + }; + + /** + * Encodes the specified LoggingVariantConfig message. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig} message LoggingVariantConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingVariantConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variant != null && Object.hasOwnProperty.call(message, "variant")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.variant); + return writer; + }; + + /** + * Encodes the specified LoggingVariantConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig} message LoggingVariantConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingVariantConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingVariantConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.LoggingVariantConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.variant = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingVariantConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingVariantConfig message. + * @function verify + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingVariantConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variant != null && message.hasOwnProperty("variant")) + switch (message.variant) { + default: + return "variant: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a LoggingVariantConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + */ + LoggingVariantConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LoggingVariantConfig) + return object; + var message = new $root.google.container.v1.LoggingVariantConfig(); + switch (object.variant) { + case "VARIANT_UNSPECIFIED": + case 0: + message.variant = 0; + break; + case "DEFAULT": + case 1: + message.variant = 1; + break; + case "MAX_THROUGHPUT": + case 2: + message.variant = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a LoggingVariantConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.LoggingVariantConfig} message LoggingVariantConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingVariantConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.variant = options.enums === String ? "VARIANT_UNSPECIFIED" : 0; + if (message.variant != null && message.hasOwnProperty("variant")) + object.variant = options.enums === String ? $root.google.container.v1.LoggingVariantConfig.Variant[message.variant] : message.variant; + return object; + }; + + /** + * Converts this LoggingVariantConfig to JSON. + * @function toJSON + * @memberof google.container.v1.LoggingVariantConfig + * @instance + * @returns {Object.} JSON object + */ + LoggingVariantConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LoggingVariantConfig + * @function getTypeUrl + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingVariantConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LoggingVariantConfig"; + }; + + /** + * Variant enum. + * @name google.container.v1.LoggingVariantConfig.Variant + * @enum {number} + * @property {number} VARIANT_UNSPECIFIED=0 VARIANT_UNSPECIFIED value + * @property {number} DEFAULT=1 DEFAULT value + * @property {number} MAX_THROUGHPUT=2 MAX_THROUGHPUT value + */ + LoggingVariantConfig.Variant = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VARIANT_UNSPECIFIED"] = 0; + values[valuesById[1] = "DEFAULT"] = 1; + values[valuesById[2] = "MAX_THROUGHPUT"] = 2; + return values; + })(); + + return LoggingVariantConfig; + })(); + v1.MonitoringComponentConfig = (function() { /** diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 8fac500d445..f1afc9031bd 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1006,6 +1006,10 @@ "confidentialNodes": { "type": "ConfidentialNodes", "id": 35 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 38 } } }, @@ -1891,6 +1895,10 @@ "gcfsConfig": { "type": "GcfsConfig", "id": 1 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 3 } } }, @@ -2032,6 +2040,10 @@ "desiredNodePoolAutoConfigNetworkTags": { "type": "NetworkTags", "id": 110 + }, + "desiredNodePoolLoggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 116 } } }, @@ -2395,6 +2407,10 @@ "gvnic": { "type": "VirtualNIC", "id": 29 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 32 } } }, @@ -4651,6 +4667,31 @@ } } }, + "NodePoolLoggingConfig": { + "fields": { + "variantConfig": { + "type": "LoggingVariantConfig", + "id": 1 + } + } + }, + "LoggingVariantConfig": { + "fields": { + "variant": { + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { + "values": { + "VARIANT_UNSPECIFIED": 0, + "DEFAULT": 1, + "MAX_THROUGHPUT": 2 + } + } + } + }, "MonitoringComponentConfig": { "fields": { "enableComponents": { 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 3ae32ee4494..f37e7eec21b 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,10 @@ function main(nodeVersion, imageType) { * Enable or disable gvnic on the node pool. */ // const gvnic = {} + /** + * Logging configuration. + */ + // const loggingConfig = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; 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 4a13cd29892..250955e4c74 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": 131, + "end": 135, "type": "FULL" } ], @@ -314,6 +314,10 @@ { "name": "gvnic", "type": ".google.container.v1.VirtualNIC" + }, + { + "name": "logging_config", + "type": ".google.container.v1.NodePoolLoggingConfig" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index bee61c40cac..ae1d4dcc7d2 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -828,6 +828,8 @@ 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 {google.container.v1.NodePoolLoggingConfig} request.loggingConfig + * Logging configuration. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.