text: "use strict";
  // Copyright 2020 Google LLC
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //    http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.logging_v2 = void 0;
  /* eslint-disable @typescript-eslint/no-explicit-any */
  /* eslint-disable @typescript-eslint/class-name-casing */
  /* eslint-disable @typescript-eslint/no-unused-vars */
  /* eslint-disable @typescript-eslint/no-empty-interface */
  /* eslint-disable @typescript-eslint/no-namespace */
  /* eslint-disable no-irregular-whitespace */
  const googleapis_common_1 = require("googleapis-common");
  var logging_v2;
  (function (logging_v2) {
      /**
       * Cloud Logging API
       *
       * Writes log entries and manages your Cloud Logging configuration.
       *
       * @example
       * ```js
       * const {google} = require('googleapis');
       * const logging = google.logging('v2');
       * ```
       */
      class Logging {
          constructor(options, google) {
              this.context = {
                  _options: options || {},
                  google,
              };
              this.billingAccounts = new Resource$Billingaccounts(this.context);
              this.entries = new Resource$Entries(this.context);
              this.exclusions = new Resource$Exclusions(this.context);
              this.folders = new Resource$Folders(this.context);
              this.locations = new Resource$Locations(this.context);
              this.logs = new Resource$Logs(this.context);
              this.monitoredResourceDescriptors =
                  new Resource$Monitoredresourcedescriptors(this.context);
              this.organizations = new Resource$Organizations(this.context);
              this.projects = new Resource$Projects(this.context);
              this.sinks = new Resource$Sinks(this.context);
              this.v2 = new Resource$V2(this.context);
          }
      }
      logging_v2.Logging = Logging;
      class Resource$Billingaccounts {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Billingaccounts$Buckets(this.context);
              this.exclusions = new Resource$Billingaccounts$Exclusions(this.context);
              this.locations = new Resource$Billingaccounts$Locations(this.context);
              this.logs = new Resource$Billingaccounts$Logs(this.context);
              this.operations = new Resource$Billingaccounts$Operations(this.context);
              this.sinks = new Resource$Billingaccounts$Sinks(this.context);
          }
          getCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          getSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts = Resource$Billingaccounts;
      class Resource$Billingaccounts$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Billingaccounts$Buckets$Views(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Buckets = Resource$Billingaccounts$Buckets;
      class Resource$Billingaccounts$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Buckets$Views = Resource$Billingaccounts$Buckets$Views;
      class Resource$Billingaccounts$Exclusions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Exclusions = Resource$Billingaccounts$Exclusions;
      class Resource$Billingaccounts$Locations {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Billingaccounts$Locations$Buckets(this.context);
              this.operations = new Resource$Billingaccounts$Locations$Operations(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations;
      class Resource$Billingaccounts$Locations$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Billingaccounts$Locations$Buckets$Views(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          undelete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Locations$Buckets = Resource$Billingaccounts$Locations$Buckets;
      class Resource$Billingaccounts$Locations$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Locations$Buckets$Views = Resource$Billingaccounts$Locations$Buckets$Views;
      class Resource$Billingaccounts$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Locations$Operations = Resource$Billingaccounts$Locations$Operations;
      class Resource$Billingaccounts$Logs {
          constructor(context) {
              this.context = context;
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['logName'],
                  pathParams: ['logName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Logs = Resource$Billingaccounts$Logs;
      class Resource$Billingaccounts$Operations {
          constructor(context) {
              this.context = context;
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Operations = Resource$Billingaccounts$Operations;
      class Resource$Billingaccounts$Sinks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks;
      class Resource$Entries {
          constructor(context) {
              this.context = context;
          }
          copy(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/entries:copy').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: [],
                  pathParams: [],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/entries:list').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: [],
                  pathParams: [],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          tail(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/entries:tail').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: [],
                  pathParams: [],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          write(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/entries:write').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: [],
                  pathParams: [],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Entries = Resource$Entries;
      class Resource$Exclusions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Exclusions = Resource$Exclusions;
      class Resource$Folders {
          constructor(context) {
              this.context = context;
              this.exclusions = new Resource$Folders$Exclusions(this.context);
              this.locations = new Resource$Folders$Locations(this.context);
              this.logs = new Resource$Folders$Logs(this.context);
              this.sinks = new Resource$Folders$Sinks(this.context);
          }
          getCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          getSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          updateSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders = Resource$Folders;
      class Resource$Folders$Exclusions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Exclusions = Resource$Folders$Exclusions;
      class Resource$Folders$Locations {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Folders$Locations$Buckets(this.context);
              this.operations = new Resource$Folders$Locations$Operations(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Locations = Resource$Folders$Locations;
      class Resource$Folders$Locations$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Folders$Locations$Buckets$Views(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          undelete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets;
      class Resource$Folders$Locations$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Locations$Buckets$Views = Resource$Folders$Locations$Buckets$Views;
      class Resource$Folders$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Locations$Operations = Resource$Folders$Locations$Operations;
      class Resource$Folders$Logs {
          constructor(context) {
              this.context = context;
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['logName'],
                  pathParams: ['logName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Logs = Resource$Folders$Logs;
      class Resource$Folders$Sinks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Folders$Sinks = Resource$Folders$Sinks;
      class Resource$Locations {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Locations$Buckets(this.context);
              this.operations = new Resource$Locations$Operations(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Locations = Resource$Locations;
      class Resource$Locations$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Locations$Buckets$Views(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          undelete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets;
      class Resource$Locations$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Locations$Buckets$Views = Resource$Locations$Buckets$Views;
      class Resource$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Locations$Operations = Resource$Locations$Operations;
      class Resource$Logs {
          constructor(context) {
              this.context = context;
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['logName'],
                  pathParams: ['logName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Logs = Resource$Logs;
      class Resource$Monitoredresourcedescriptors {
          constructor(context) {
              this.context = context;
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: [],
                  pathParams: [],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Monitoredresourcedescriptors = Resource$Monitoredresourcedescriptors;
      class Resource$Organizations {
          constructor(context) {
              this.context = context;
              this.exclusions = new Resource$Organizations$Exclusions(this.context);
              this.locations = new Resource$Organizations$Locations(this.context);
              this.logs = new Resource$Organizations$Logs(this.context);
              this.sinks = new Resource$Organizations$Sinks(this.context);
          }
          getCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          getSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          updateSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations = Resource$Organizations;
      class Resource$Organizations$Exclusions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Exclusions = Resource$Organizations$Exclusions;
      class Resource$Organizations$Locations {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Organizations$Locations$Buckets(this.context);
              this.operations = new Resource$Organizations$Locations$Operations(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Locations = Resource$Organizations$Locations;
      class Resource$Organizations$Locations$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Organizations$Locations$Buckets$Views(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          undelete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Locations$Buckets = Resource$Organizations$Locations$Buckets;
      class Resource$Organizations$Locations$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Locations$Buckets$Views = Resource$Organizations$Locations$Buckets$Views;
      class Resource$Organizations$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params =
                      {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations;
      class Resource$Organizations$Logs {
          constructor(context) {
              this.context = context;
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['logName'],
                  pathParams: ['logName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs;
      class Resource$Organizations$Sinks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Organizations$Sinks = Resource$Organizations$Sinks;
      class Resource$Projects {
          constructor(context) {
              this.context = context;
              this.exclusions = new Resource$Projects$Exclusions(this.context);
              this.locations = new Resource$Projects$Locations(this.context);
              this.logs = new Resource$Projects$Logs(this.context);
              this.metrics = new Resource$Projects$Metrics(this.context);
              this.sinks = new Resource$Projects$Sinks(this.context);
          }
          getCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          getSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects = Resource$Projects;
      class Resource$Projects$Exclusions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Exclusions = Resource$Projects$Exclusions;
      class Resource$Projects$Locations {
          constructor(context) {
              this.context = context;
              this.buckets = new Resource$Projects$Locations$Buckets(this.context);
              this.operations = new Resource$Projects$Locations$Operations(this.context);
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Locations = Resource$Projects$Locations;
      class Resource$Projects$Locations$Buckets {
          constructor(context) {
              this.context = context;
              this.views = new Resource$Projects$Locations$Buckets$Views(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          undelete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Locations$Buckets = Resource$Projects$Locations$Buckets;
      class Resource$Projects$Locations$Buckets$Views {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Locations$Buckets$Views = Resource$Projects$Locations$Buckets$Views;
      class Resource$Projects$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
      class Resource$Projects$Logs {
          constructor(context) {
              this.context = context;
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['logName'],
                  pathParams: ['logName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Logs = Resource$Projects$Logs;
      class Resource$Projects$Metrics {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['metricName'],
                  pathParams: ['metricName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['metricName'],
                  pathParams: ['metricName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['metricName'],
                  pathParams: ['metricName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics;
      class Resource$Projects$Sinks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks;
      class Resource$Sinks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          update(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PUT',
                  }, options),
                  params,
                  requiredParams: ['sinkName'],
                  pathParams: ['sinkName'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$Sinks = Resource$Sinks;
      class Resource$V2 {
          constructor(context) {
              this.context = context;
          }
          getCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          getSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback || {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          updateSettings(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://logging.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      logging_v2.Resource$V2 = Resource$V2;
  })(logging_v2 = exports.logging_v2 || (exports.logging_v2 = {}));
  