diff --git a/packages/google-cloud-gkemulticloud/.jsdoc.js b/packages/google-cloud-gkemulticloud/.jsdoc.js index dfb31e81639..4a3f448df8b 100644 --- a/packages/google-cloud-gkemulticloud/.jsdoc.js +++ b/packages/google-cloud-gkemulticloud/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2024 Google LLC', + copyright: 'Copyright 2025 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/gkemulticloud', diff --git a/packages/google-cloud-gkemulticloud/.mocharc.js b/packages/google-cloud-gkemulticloud/.mocharc.js index 7e843ab5a75..eef6173ab44 100644 --- a/packages/google-cloud-gkemulticloud/.mocharc.js +++ b/packages/google-cloud-gkemulticloud/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/.prettierrc.js b/packages/google-cloud-gkemulticloud/.prettierrc.js index 120c6aa3e6e..b189724933b 100644 --- a/packages/google-cloud-gkemulticloud/.prettierrc.js +++ b/packages/google-cloud-gkemulticloud/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto index 2f8b3006512..852ad00f0c5 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto @@ -169,6 +169,24 @@ message AttachedCluster { // Optional. Security Posture configuration for this cluster. SecurityPostureConfig security_posture_config = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Tag keys/values directly bound to this resource. + // + // Tag key must be specified in the format / + // where the tag namespace is the ID of the organization or name of the + // project that the tag key is defined in. + // The short name of a tag key or value can have a maximum length of 256 + // characters. The permitted character set for the short name includes UTF-8 + // encoded Unicode characters except single quotes ('), double quotes ("), + // backslashes (\), and forward slashes (/). + // + // See + // [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview) + // for more details on Google Cloud Platform tags. + map tags = 27 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; } // Configuration related to the cluster RBAC settings. @@ -261,6 +279,10 @@ message AttachedProxyConfig { // The Kubernetes Secret resource that contains the HTTP(S) proxy // configuration. The secret must be a JSON encoded proxy configuration // as described in + // https://cloud.google.com/kubernetes-engine/multi-cloud/docs/attached/eks/how-to/use-a-proxy#configure-proxy-support + // for EKS clusters and + // https://cloud.google.com/kubernetes-engine/multi-cloud/docs/attached/aks/how-to/use-a-proxy#configure-proxy-support + // for AKS clusters. KubernetesSecret kubernetes_secret = 1; } diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto index 3c335ffdedc..b519d71e6a8 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto @@ -324,6 +324,7 @@ message UpdateAttachedClusterRequest { // * `proxy_config.kubernetes_secret.name`. // * `proxy_config.kubernetes_secret.namespace`. // * `security_posture_config.vulnerability_mode` + // * `monitoring_config.cloud_monitoring_config.enabled` google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto index ed4a485c713..aa49a535296 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto @@ -102,9 +102,10 @@ message OperationMetadata { // Output only. Identifies whether it has been requested cancellation // for the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -245,6 +246,10 @@ message LoggingComponentConfig { message MonitoringConfig { // Enable Google Cloud Managed Service for Prometheus in the cluster. ManagedPrometheusConfig managed_prometheus_config = 2; + + // Optionally enable GKE metrics. + // Only for Attached Clusters. + CloudMonitoringConfig cloud_monitoring_config = 4; } // ManagedPrometheusConfig defines the configuration for @@ -254,6 +259,15 @@ message ManagedPrometheusConfig { bool enabled = 1; } +// CloudMonitoringConfig defines the configuration for +// built-in Cloud Logging and Monitoring. +// Only for Attached Clusters. +message CloudMonitoringConfig { + // Enable GKE-native logging and metrics. + // Only for Attached Clusters. + optional bool enabled = 1; +} + // Configuration for Binary Authorization. message BinaryAuthorization { // Binary Authorization mode of operation. diff --git a/packages/google-cloud-gkemulticloud/protos/protos.d.ts b/packages/google-cloud-gkemulticloud/protos/protos.d.ts index 6566de2a690..963c2e5edd9 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.d.ts +++ b/packages/google-cloud-gkemulticloud/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -97,6 +97,9 @@ export namespace google { /** AttachedCluster securityPostureConfig */ securityPostureConfig?: (google.cloud.gkemulticloud.v1.ISecurityPostureConfig|null); + + /** AttachedCluster tags */ + tags?: ({ [k: string]: string }|null); } /** Represents an AttachedCluster. */ @@ -177,6 +180,9 @@ export namespace google { /** AttachedCluster securityPostureConfig. */ public securityPostureConfig?: (google.cloud.gkemulticloud.v1.ISecurityPostureConfig|null); + /** AttachedCluster tags. */ + public tags: { [k: string]: string }; + /** * Creates a new AttachedCluster instance using the specified properties. * @param [properties] Properties to set @@ -2215,6 +2221,9 @@ export namespace google { /** MonitoringConfig managedPrometheusConfig */ managedPrometheusConfig?: (google.cloud.gkemulticloud.v1.IManagedPrometheusConfig|null); + + /** MonitoringConfig cloudMonitoringConfig */ + cloudMonitoringConfig?: (google.cloud.gkemulticloud.v1.ICloudMonitoringConfig|null); } /** Represents a MonitoringConfig. */ @@ -2229,6 +2238,9 @@ export namespace google { /** MonitoringConfig managedPrometheusConfig. */ public managedPrometheusConfig?: (google.cloud.gkemulticloud.v1.IManagedPrometheusConfig|null); + /** MonitoringConfig cloudMonitoringConfig. */ + public cloudMonitoringConfig?: (google.cloud.gkemulticloud.v1.ICloudMonitoringConfig|null); + /** * Creates a new MonitoringConfig instance using the specified properties. * @param [properties] Properties to set @@ -2404,6 +2416,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CloudMonitoringConfig. */ + interface ICloudMonitoringConfig { + + /** CloudMonitoringConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a CloudMonitoringConfig. */ + class CloudMonitoringConfig implements ICloudMonitoringConfig { + + /** + * Constructs a new CloudMonitoringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkemulticloud.v1.ICloudMonitoringConfig); + + /** CloudMonitoringConfig enabled. */ + public enabled?: (boolean|null); + + /** CloudMonitoringConfig _enabled. */ + public _enabled?: "enabled"; + + /** + * Creates a new CloudMonitoringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudMonitoringConfig instance + */ + public static create(properties?: google.cloud.gkemulticloud.v1.ICloudMonitoringConfig): google.cloud.gkemulticloud.v1.CloudMonitoringConfig; + + /** + * Encodes the specified CloudMonitoringConfig message. Does not implicitly {@link google.cloud.gkemulticloud.v1.CloudMonitoringConfig.verify|verify} messages. + * @param message CloudMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkemulticloud.v1.ICloudMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CloudMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.gkemulticloud.v1.CloudMonitoringConfig.verify|verify} messages. + * @param message CloudMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkemulticloud.v1.ICloudMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudMonitoringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudMonitoringConfig + * @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.cloud.gkemulticloud.v1.CloudMonitoringConfig; + + /** + * Decodes a CloudMonitoringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloudMonitoringConfig + * @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.cloud.gkemulticloud.v1.CloudMonitoringConfig; + + /** + * Verifies a CloudMonitoringConfig 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 CloudMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloudMonitoringConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkemulticloud.v1.CloudMonitoringConfig; + + /** + * Creates a plain object from a CloudMonitoringConfig message. Also converts values to other types if specified. + * @param message CloudMonitoringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkemulticloud.v1.CloudMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CloudMonitoringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CloudMonitoringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BinaryAuthorization. */ interface IBinaryAuthorization { diff --git a/packages/google-cloud-gkemulticloud/protos/protos.js b/packages/google-cloud-gkemulticloud/protos/protos.js index 71fa0854254..2c454ac7cc5 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.js +++ b/packages/google-cloud-gkemulticloud/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -95,6 +95,7 @@ * @property {google.cloud.gkemulticloud.v1.IAttachedProxyConfig|null} [proxyConfig] AttachedCluster proxyConfig * @property {google.cloud.gkemulticloud.v1.IBinaryAuthorization|null} [binaryAuthorization] AttachedCluster binaryAuthorization * @property {google.cloud.gkemulticloud.v1.ISecurityPostureConfig|null} [securityPostureConfig] AttachedCluster securityPostureConfig + * @property {Object.|null} [tags] AttachedCluster tags */ /** @@ -108,6 +109,7 @@ function AttachedCluster(properties) { this.annotations = {}; this.errors = []; + this.tags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -298,6 +300,14 @@ */ AttachedCluster.prototype.securityPostureConfig = null; + /** + * AttachedCluster tags. + * @member {Object.} tags + * @memberof google.cloud.gkemulticloud.v1.AttachedCluster + * @instance + */ + AttachedCluster.prototype.tags = $util.emptyObject; + /** * Creates a new AttachedCluster instance using the specified properties. * @function create @@ -370,6 +380,9 @@ $root.google.cloud.gkemulticloud.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.securityPostureConfig != null && Object.hasOwnProperty.call(message, "securityPostureConfig")) $root.google.cloud.gkemulticloud.v1.SecurityPostureConfig.encode(message.securityPostureConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 27, wireType 2 =*/218).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; @@ -517,6 +530,29 @@ message.securityPostureConfig = $root.google.cloud.gkemulticloud.v1.SecurityPostureConfig.decode(reader, reader.uint32()); break; } + case 27: { + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -664,6 +700,14 @@ if (error) return "securityPostureConfig." + error; } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } return null; }; @@ -805,6 +849,13 @@ throw TypeError(".google.cloud.gkemulticloud.v1.AttachedCluster.securityPostureConfig: object expected"); message.securityPostureConfig = $root.google.cloud.gkemulticloud.v1.SecurityPostureConfig.fromObject(object.securityPostureConfig); } + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".google.cloud.gkemulticloud.v1.AttachedCluster.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } return message; }; @@ -823,8 +874,10 @@ var object = {}; if (options.arrays || options.defaults) object.errors = []; - if (options.objects || options.defaults) + if (options.objects || options.defaults) { object.annotations = {}; + object.tags = {}; + } if (options.defaults) { object.name = ""; object.description = ""; @@ -901,6 +954,11 @@ object.binaryAuthorization = $root.google.cloud.gkemulticloud.v1.BinaryAuthorization.toObject(message.binaryAuthorization, options); if (message.securityPostureConfig != null && message.hasOwnProperty("securityPostureConfig")) object.securityPostureConfig = $root.google.cloud.gkemulticloud.v1.SecurityPostureConfig.toObject(message.securityPostureConfig, options); + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } return object; }; @@ -5539,6 +5597,7 @@ * @memberof google.cloud.gkemulticloud.v1 * @interface IMonitoringConfig * @property {google.cloud.gkemulticloud.v1.IManagedPrometheusConfig|null} [managedPrometheusConfig] MonitoringConfig managedPrometheusConfig + * @property {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig|null} [cloudMonitoringConfig] MonitoringConfig cloudMonitoringConfig */ /** @@ -5564,6 +5623,14 @@ */ MonitoringConfig.prototype.managedPrometheusConfig = null; + /** + * MonitoringConfig cloudMonitoringConfig. + * @member {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig|null|undefined} cloudMonitoringConfig + * @memberof google.cloud.gkemulticloud.v1.MonitoringConfig + * @instance + */ + MonitoringConfig.prototype.cloudMonitoringConfig = null; + /** * Creates a new MonitoringConfig instance using the specified properties. * @function create @@ -5590,6 +5657,8 @@ writer = $Writer.create(); if (message.managedPrometheusConfig != null && Object.hasOwnProperty.call(message, "managedPrometheusConfig")) $root.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.encode(message.managedPrometheusConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cloudMonitoringConfig != null && Object.hasOwnProperty.call(message, "cloudMonitoringConfig")) + $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig.encode(message.cloudMonitoringConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -5628,6 +5697,10 @@ message.managedPrometheusConfig = $root.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.decode(reader, reader.uint32()); break; } + case 4: { + message.cloudMonitoringConfig = $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -5668,6 +5741,11 @@ if (error) return "managedPrometheusConfig." + error; } + if (message.cloudMonitoringConfig != null && message.hasOwnProperty("cloudMonitoringConfig")) { + var error = $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig.verify(message.cloudMonitoringConfig); + if (error) + return "cloudMonitoringConfig." + error; + } return null; }; @@ -5688,6 +5766,11 @@ throw TypeError(".google.cloud.gkemulticloud.v1.MonitoringConfig.managedPrometheusConfig: object expected"); message.managedPrometheusConfig = $root.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.fromObject(object.managedPrometheusConfig); } + if (object.cloudMonitoringConfig != null) { + if (typeof object.cloudMonitoringConfig !== "object") + throw TypeError(".google.cloud.gkemulticloud.v1.MonitoringConfig.cloudMonitoringConfig: object expected"); + message.cloudMonitoringConfig = $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig.fromObject(object.cloudMonitoringConfig); + } return message; }; @@ -5704,10 +5787,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.managedPrometheusConfig = null; + object.cloudMonitoringConfig = null; + } if (message.managedPrometheusConfig != null && message.hasOwnProperty("managedPrometheusConfig")) object.managedPrometheusConfig = $root.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.toObject(message.managedPrometheusConfig, options); + if (message.cloudMonitoringConfig != null && message.hasOwnProperty("cloudMonitoringConfig")) + object.cloudMonitoringConfig = $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig.toObject(message.cloudMonitoringConfig, options); return object; }; @@ -5943,6 +6030,227 @@ return ManagedPrometheusConfig; })(); + v1.CloudMonitoringConfig = (function() { + + /** + * Properties of a CloudMonitoringConfig. + * @memberof google.cloud.gkemulticloud.v1 + * @interface ICloudMonitoringConfig + * @property {boolean|null} [enabled] CloudMonitoringConfig enabled + */ + + /** + * Constructs a new CloudMonitoringConfig. + * @memberof google.cloud.gkemulticloud.v1 + * @classdesc Represents a CloudMonitoringConfig. + * @implements ICloudMonitoringConfig + * @constructor + * @param {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig=} [properties] Properties to set + */ + function CloudMonitoringConfig(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]]; + } + + /** + * CloudMonitoringConfig enabled. + * @member {boolean|null|undefined} enabled + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @instance + */ + CloudMonitoringConfig.prototype.enabled = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CloudMonitoringConfig _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @instance + */ + Object.defineProperty(CloudMonitoringConfig.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CloudMonitoringConfig instance using the specified properties. + * @function create + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.gkemulticloud.v1.CloudMonitoringConfig} CloudMonitoringConfig instance + */ + CloudMonitoringConfig.create = function create(properties) { + return new CloudMonitoringConfig(properties); + }; + + /** + * Encodes the specified CloudMonitoringConfig message. Does not implicitly {@link google.cloud.gkemulticloud.v1.CloudMonitoringConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig} message CloudMonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudMonitoringConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified CloudMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.gkemulticloud.v1.CloudMonitoringConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {google.cloud.gkemulticloud.v1.ICloudMonitoringConfig} message CloudMonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CloudMonitoringConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkemulticloud.v1.CloudMonitoringConfig} CloudMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudMonitoringConfig.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.cloud.gkemulticloud.v1.CloudMonitoringConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CloudMonitoringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkemulticloud.v1.CloudMonitoringConfig} CloudMonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CloudMonitoringConfig message. + * @function verify + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudMonitoringConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + properties._enabled = 1; + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + } + return null; + }; + + /** + * Creates a CloudMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkemulticloud.v1.CloudMonitoringConfig} CloudMonitoringConfig + */ + CloudMonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig) + return object; + var message = new $root.google.cloud.gkemulticloud.v1.CloudMonitoringConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a CloudMonitoringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {google.cloud.gkemulticloud.v1.CloudMonitoringConfig} message CloudMonitoringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CloudMonitoringConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + return object; + }; + + /** + * Converts this CloudMonitoringConfig to JSON. + * @function toJSON + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @instance + * @returns {Object.} JSON object + */ + CloudMonitoringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CloudMonitoringConfig + * @function getTypeUrl + * @memberof google.cloud.gkemulticloud.v1.CloudMonitoringConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CloudMonitoringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkemulticloud.v1.CloudMonitoringConfig"; + }; + + return CloudMonitoringConfig; + })(); + v1.BinaryAuthorization = (function() { /** diff --git a/packages/google-cloud-gkemulticloud/protos/protos.json b/packages/google-cloud-gkemulticloud/protos/protos.json index efdaae79ff9..dec4caf9131 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.json +++ b/packages/google-cloud-gkemulticloud/protos/protos.json @@ -182,6 +182,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "tags": { + "keyType": "string", + "type": "string", + "id": 27, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" + } } }, "nested": { @@ -577,6 +585,10 @@ "managedPrometheusConfig": { "type": "ManagedPrometheusConfig", "id": 2 + }, + "cloudMonitoringConfig": { + "type": "CloudMonitoringConfig", + "id": 4 } } }, @@ -588,6 +600,24 @@ } } }, + "CloudMonitoringConfig": { + "oneofs": { + "_enabled": { + "oneof": [ + "enabled" + ] + } + }, + "fields": { + "enabled": { + "type": "bool", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + }, "BinaryAuthorization": { "fields": { "evaluationMode": { diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.create_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.create_attached_cluster.js index cedc39d212a..610423a4db8 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.create_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.create_attached_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js index a4fc99e83c8..3b7dfa07ad3 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_agent_token.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_agent_token.js index a274ab634f3..ed658ee8856 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_agent_token.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_agent_token.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js index 2ff681ea991..74569a80401 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js index 3c82473f113..33f5ff657e5 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_server_config.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_server_config.js index 5a1fa07dfc1..d4b1a591d50 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_server_config.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_server_config.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.import_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.import_attached_cluster.js index e0b1c345bc6..ff9b0b0366e 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.import_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.import_attached_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js index 0aa67fc0f39..8e289419dce 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/attached_clusters.update_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.update_attached_cluster.js index b33ef305a7a..abbf776ec46 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.update_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.update_attached_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -54,6 +54,7 @@ function main(attachedCluster, updateMask) { * * `proxy_config.kubernetes_secret.name`. * * `proxy_config.kubernetes_secret.namespace`. * * `security_posture_config.vulnerability_mode` + * * `monitoring_config.cloud_monitoring_config.enabled` */ // const updateMask = {} diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_cluster.js index a210216cc5b..5a75c4df500 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_node_pool.js index 531448f37ed..9ee782ad904 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.create_aws_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js index 7d095d35292..e1660ea129c 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_node_pool.js index d6affc93718..f49ebc72276 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_access_token.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_access_token.js index 72759454b17..5b9d62e31cf 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_access_token.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_access_token.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_cluster_agent_token.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_cluster_agent_token.js index b84b6d5c836..3eef4afd3c0 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_cluster_agent_token.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.generate_aws_cluster_agent_token.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js index 5ab9ea138f4..d10b57e5bb1 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_json_web_keys.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_json_web_keys.js index 135dea40a25..04e67552abd 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_json_web_keys.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_json_web_keys.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_node_pool.js index 98c2c2f38fb..74d389b5ab1 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_open_id_config.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_open_id_config.js index 83712b5007e..c9e6bda3ae8 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_open_id_config.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_open_id_config.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_server_config.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_server_config.js index 551b2bcf0a0..00284b6ccaa 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_server_config.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_server_config.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js index 44db4a39922..d2fabc49ddb 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_node_pools.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_node_pools.js index dffdea4dae7..574f5799f37 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_node_pools.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_node_pools.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.rollback_aws_node_pool_update.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.rollback_aws_node_pool_update.js index 635fd061b90..ab9817c2355 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.rollback_aws_node_pool_update.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.rollback_aws_node_pool_update.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_cluster.js index c1634317471..80966646c8b 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_node_pool.js index 340c8311d7c..3d7419d9a83 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.update_aws_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_client.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_client.js index 7ffb66406ff..11adaaf1183 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_client.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_client.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_cluster.js index df3d2b03521..d61817e535c 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_node_pool.js index 71024178c9e..7ceb5edc245 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.create_azure_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_client.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_client.js index cf004d0733c..743415f61d5 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_client.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_client.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js index 87449dc6809..40ae8d8a43a 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_node_pool.js index f523e1b21d7..22793199162 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_access_token.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_access_token.js index f0c3ebfa336..2c35eb81faa 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_access_token.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_access_token.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_cluster_agent_token.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_cluster_agent_token.js index 36c80373a31..5e008fe528f 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_cluster_agent_token.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.generate_azure_cluster_agent_token.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_client.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_client.js index 8e691cd3a24..4b81cb5f07a 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_client.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_client.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js index f0ce2327f26..52a3dae765c 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_json_web_keys.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_json_web_keys.js index 2e944c9af2b..35e18bff725 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_json_web_keys.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_json_web_keys.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_node_pool.js index 6cda8c50562..c29ac128d30 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_open_id_config.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_open_id_config.js index 780297906bf..7fd382be066 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_open_id_config.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_open_id_config.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_server_config.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_server_config.js index 2c5b8ac7a0a..2650428bb53 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_server_config.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_server_config.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js index 256695555a2..8c8cfc9015e 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js index 479fe9d80d7..23ec6268594 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_node_pools.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_node_pools.js index ea45f0d0999..4de2cc7d522 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_node_pools.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_node_pools.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js index a87d0045c48..8334b0e9691 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_node_pool.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_node_pool.js index e86e134930b..c17d71c173f 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_node_pool.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_node_pool.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json index 8b9a56cc2ce..fd57b57f301 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json @@ -74,7 +74,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 80, "type": "FULL" } ], diff --git a/packages/google-cloud-gkemulticloud/src/index.ts b/packages/google-cloud-gkemulticloud/src/index.ts index d9898edbc07..ab1beafec03 100644 --- a/packages/google-cloud-gkemulticloud/src/index.ts +++ b/packages/google-cloud-gkemulticloud/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/src/v1/attached_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts index 958645b9d3c..94b26c0adc4 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1167,6 +1167,7 @@ export class AttachedClustersClient { * * `proxy_config.kubernetes_secret.name`. * * `proxy_config.kubernetes_secret.namespace`. * * `security_posture_config.vulnerability_mode` + * * `monitoring_config.cloud_monitoring_config.enabled` * @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. diff --git a/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts index a2004abcd22..87c41309f88 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/src/v1/azure_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts index a518583826b..8300f7ed691 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/src/v1/index.ts b/packages/google-cloud-gkemulticloud/src/v1/index.ts index b7f0dd19743..1ef94becc0a 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/index.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/system-test/fixtures/sample/src/index.js b/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.js index 0e7c168bd11..615f412e8c6 100644 --- a/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.ts index 57a3be74459..5c417560113 100644 --- a/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-gkemulticloud/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/system-test/install.ts b/packages/google-cloud-gkemulticloud/system-test/install.ts index 83b83f332c3..d927b34361d 100644 --- a/packages/google-cloud-gkemulticloud/system-test/install.ts +++ b/packages/google-cloud-gkemulticloud/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/test/gapic_attached_clusters_v1.ts b/packages/google-cloud-gkemulticloud/test/gapic_attached_clusters_v1.ts index 2e8e299d9ab..d2a7e75ba96 100644 --- a/packages/google-cloud-gkemulticloud/test/gapic_attached_clusters_v1.ts +++ b/packages/google-cloud-gkemulticloud/test/gapic_attached_clusters_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/test/gapic_aws_clusters_v1.ts b/packages/google-cloud-gkemulticloud/test/gapic_aws_clusters_v1.ts index 4d66c30178c..e0368bab387 100644 --- a/packages/google-cloud-gkemulticloud/test/gapic_aws_clusters_v1.ts +++ b/packages/google-cloud-gkemulticloud/test/gapic_aws_clusters_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-cloud-gkemulticloud/test/gapic_azure_clusters_v1.ts b/packages/google-cloud-gkemulticloud/test/gapic_azure_clusters_v1.ts index 39f0d602b04..8473f421fcc 100644 --- a/packages/google-cloud-gkemulticloud/test/gapic_azure_clusters_v1.ts +++ b/packages/google-cloud-gkemulticloud/test/gapic_azure_clusters_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.