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.notebooks_v1 = 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 notebooks_v1;
  (function (notebooks_v1) {
      /**
       * Notebooks API
       *
       * AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
       *
       * @example
       * ```js
       * const {google} = require('googleapis');
       * const notebooks = google.notebooks('v1');
       * ```
       */
      class Notebooks {
          constructor(options, google) {
              this.context = {
                  _options: options || {},
                  google,
              };
              this.projects = new Resource$Projects(this.context);
          }
      }
      notebooks_v1.Notebooks = Notebooks;
      class Resource$Projects {
          constructor(context) {
              this.context = context;
              this.locations = new Resource$Projects$Locations(this.context);
          }
      }
      notebooks_v1.Resource$Projects = Resource$Projects;
      class Resource$Projects$Locations {
          constructor(context) {
              this.context = context;
              this.environments = new Resource$Projects$Locations$Environments(this.context);
              this.instances = new Resource$Projects$Locations$Instances(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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);
              }
          }
      }
      notebooks_v1.Resource$Projects$Locations = Resource$Projects$Locations;
      class Resource$Projects$Locations$Environments {
          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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+parent}/environments').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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+parent}/environments').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);
              }
          }
      }
      notebooks_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments;
      class Resource$Projects$Locations$Instances {
          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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+parent}/instances').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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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);
              }
          }
          getIamPolicy(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['resource'],
                  pathParams: ['resource'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          isUpgradeable(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+notebookInstance}:isUpgradeable').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['notebookInstance'],
                  pathParams: ['notebookInstance'],
                  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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+parent}/instances').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);
              }
          }
          register(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+parent}/instances:register').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);
              }
          }
          report(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:report').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);
              }
          }
          reset(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:reset').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);
              }
          }
          setAccelerator(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:setAccelerator').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);
              }
          }
          setIamPolicy(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['resource'],
                  pathParams: ['resource'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          setLabels(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:setLabels').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);
              }
          }
          setMachineType(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:setMachineType').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);
              }
          }
          start(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:start').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);
              }
          }
          stop(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:stop').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);
              }
          }
          testIamPermissions(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['resource'],
                  pathParams: ['resource'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          upgrade(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:upgrade').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);
              }
          }
          upgradeInternal(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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+name}:upgradeInternal').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);
              }
          }
      }
      notebooks_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances;
      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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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);
              }
          }
          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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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://notebooks.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v1/{+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);
              }
          }
      }
      notebooks_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
  })(notebooks_v1 = exports.notebooks_v1 || (exports.notebooks_v1 = {}));
  //# sourceMappingURL=v1.js.map